# |
Date |
Size |
|
Editor |
Comment |
Action |
45 |
2012-02-01 12:36:56 |
8709 |
to previous |
a91-155-176-245 |
Trim down example and leave only option handling |
view |
44 |
2012-02-01 12:34:05 |
9933 |
to previous |
a91-155-176-245 |
Correct Copyrght line to official syntax: the placement of (C) |
view |
43 |
2012-02-01 12:21:20 |
9933 |
to previous |
a91-155-176-245 |
Add demonstration of how to use $verbose with Verbose() |
view |
42 |
2012-02-01 12:11:23 |
9691 |
to previous |
a91-155-176-245 |
Fis minor typo in option example |
view |
41 |
2012-02-01 12:10:25 |
9689 |
to previous |
a91-155-176-245 |
Replace separate "Manual options" examples with one POSIX example that also demonstrates --option ARG, and --option=ARG in one go. Add Bash highlighting etc other minor formatting. |
view |
40 |
2011-10-21 22:41:22 |
9215 |
to previous |
GreyCat |
add TOC |
view |
39 |
2011-10-19 06:17:52 |
9165 |
to previous |
pgas |
Remove the blank line, maybe fixing the TOC |
view |
38 |
2011-10-17 21:41:18 |
9167 |
to previous |
dslb-092-076-252-089 |
Can we regard the discussion as settled in this way? |
view |
37 |
2011-10-08 19:56:46 |
11098 |
to previous |
dslb-092-076-251-070 |
|
view |
36 |
2011-10-08 19:28:06 |
11625 |
to previous |
GreyCat |
explain more, although I thought I had already explained. what do you mean, you don't understand how your own trick works? |
view |
35 |
2011-10-08 15:56:56 |
10333 |
to previous |
dslb-092-076-251-070 |
|
view |
34 |
2011-10-08 15:28:45 |
9521 |
to previous |
dslb-092-076-251-070 |
There is more than one way to do it, since this section is titled getopts, I guess it fits here. It shows how to do it using getopts. The OPTERR-Stuff was just behavioural sugar, I just removed it |
view |
33 |
2011-10-08 02:09:20 |
9826 |
to previous |
GreyCat |
fix the "duh I used set -u and I broke it" "fix" which didn't actually work; what the hell is that getopts long options thing? |
view |
32 |
2011-10-07 18:32:45 |
9301 |
to previous |
dslb-092-076-251-070 |
|
view |
31 |
2011-10-07 18:30:36 |
9302 |
to previous |
dslb-092-076-251-070 |
|
view |
30 |
2011-10-07 18:28:14 |
9249 |
to previous |
dslb-092-076-251-070 |
Example for parsing long options with getopts |
view |
29 |
2010-07-27 16:01:37 |
7769 |
to previous |
Lhunath |
The grammar was correct. Admittedly, both sentences are linguistically ambiguous, though the original was better than the fix IMO. |
view |
28 |
2010-07-27 11:26:51 |
7773 |
to previous |
c122-108-89-15 |
|
view |
27 |
2010-06-11 20:19:38 |
7769 |
to previous |
geirha |
|
view |
26 |
2010-06-11 20:15:49 |
7764 |
to previous |
geirha |
Reset OPTIND before using getopts |
view |
25 |
2010-05-11 05:24:46 |
7757 |
to previous |
p5B09615D |
fixed links |
view |
24 |
2010-02-28 15:12:19 |
7766 |
to previous |
GreyCat |
make the "set -u" example much easier to read |
view |
23 |
2010-02-28 00:29:14 |
7382 |
to previous |
158 |
If you use "set -o nounset" (or "set -u"), the "manual loop" should be changed, since it finally can "work" with the value of an unset variable. |
view |
22 |
2010-02-28 00:16:52 |
6909 |
to previous |
158 |
Simplified a printf and sent the output to stderr. Added another 1>&2. |
view |
21 |
2010-02-28 00:12:12 |
6912 |
to previous |
158 |
Added "1>&2" to an error message |
view |
20 |
2010-02-04 22:08:33 |
6907 |
to previous |
GreyCat |
separate the approaches into clearly divided sections, and describe the strengths/weaknesses |
view |
19 |
2010-02-04 21:32:14 |
5729 |
to previous |
GreyCat |
make the getopts example a bit more realistic |
view |
18 |
2010-01-22 09:17:33 |
5810 |
to previous |
195 |
little fix in needle |
view |
17 |
2009-12-30 18:40:15 |
5809 |
to previous |
MatthiasPopp |
|
view |
16 |
2009-12-23 23:59:27 |
5786 |
to previous |
c122-108-164-114 |
|
view |
15 |
2009-12-10 00:53:44 |
5795 |
to previous |
c122-108-164-114 |
|
view |
14 |
2009-12-10 00:51:36 |
5800 |
to previous |
c122-108-164-114 |
|
view |
13 |
2009-12-09 02:07:13 |
5688 |
to previous |
ozgw |
|
view |
12 |
2009-12-09 02:04:10 |
5616 |
to previous |
ozgw |
|
view |
11 |
2009-12-07 20:04:44 |
5416 |
to previous |
GreyCat |
tested process-getopt |
view |
10 |
2009-12-07 19:11:13 |
4973 |
to previous |
GreyCat |
merge most of BashFAQ/101 with the intent to remove 101 later |
view |
9 |
2009-11-03 19:50:20 |
2702 |
to previous |
GreyCat |
add POSIX version of the non-getopts example |
view |
8 |
2009-08-18 11:17:06 |
2337 |
to previous |
pgas |
check if -f has an arguement to avoid an infinite loop |
view |
7 |
2008-11-22 14:09:00 |
2185 |
to previous |
localhost |
converted to 1.6 markup |
view |
6 |
2008-10-14 20:14:47 |
2185 |
to previous |
GreyCat |
remove extra newline |
view |
5 |
2008-10-01 13:08:29 |
2187 |
to previous |
pgas |
add error handling for invalid options. |
view |
4 |
2008-05-08 13:06:30 |
2120 |
to previous |
GreyCat |
clean up |
view |
3 |
2008-03-02 17:55:00 |
2047 |
to previous |
GreyCat |
formatting and grammar fixes |
view |
2 |
2008-03-02 00:16:06 |
1863 |
to previous |
brt48 |
by limcore.com woot? |
view |
1 |
2007-05-02 23:24:11 |
1255 |
|
redondos |
|
view |