# |
Date |
Size |
|
Editor |
Comment |
Action |
70 |
2012-07-10 09:40:32 |
11163 |
to previous |
ormaaj |
geirha speaks the truth. |
view |
69 |
2012-07-10 03:37:14 |
11020 |
to previous |
S01060080adc182be |
${variable-} syntax |
view |
68 |
2012-05-11 05:31:08 |
10870 |
to previous |
free-vpn |
fixed number |
view |
67 |
2012-05-11 05:29:04 |
10870 |
to previous |
free-vpn |
fixed indention |
view |
66 |
2012-05-11 05:27:56 |
10874 |
to previous |
free-vpn |
fixed |
view |
65 |
2012-05-11 05:16:26 |
10754 |
to previous |
free-vpn |
Added more developed method to support long options alongside getopts |
view |
64 |
2012-02-03 21:44:39 |
9003 |
to previous |
GreyCat |
exit, not return, since it's no longer inside a function |
view |
63 |
2012-02-02 18:42:45 |
9005 |
to previous |
a91-155-176-245 |
Delete extra ending brace |
view |
62 |
2012-02-01 17:38:14 |
9008 |
to previous |
GreyCat |
Clean up... a lot. |
view |
61 |
2012-02-01 14:00:24 |
8991 |
to previous |
a91-155-176-245 |
Use --file as a better example of a required option |
view |
60 |
2012-02-01 13:55:20 |
9031 |
to previous |
a91-155-176-245 |
Move --verbose=VALUE alphabetically lower (after short option -v) |
view |
59 |
2012-02-01 13:53:22 |
9029 |
to previous |
a91-155-176-245 |
Fix --file option arg reading |
view |
58 |
2012-02-01 13:52:44 |
9029 |
to previous |
a91-155-176-245 |
Fix --file option's shift command |
view |
57 |
2012-02-01 13:51:44 |
9013 |
to previous |
a91-155-176-245 |
Order options alphabetically |
view |
56 |
2012-02-01 13:50:53 |
9013 |
to previous |
a91-155-176-245 |
Add also simple --file option example |
view |
55 |
2012-02-01 13:08:03 |
8855 |
to previous |
a91-155-176-245 |
Add eOF markers to complete scripts |
view |
54 |
2012-02-01 13:02:15 |
8838 |
to previous |
a91-155-176-245 |
Fix markup [[links]] |
view |
53 |
2012-02-01 12:58:45 |
8836 |
to previous |
a91-155-176-245 |
Fix spelling |
view |
52 |
2012-02-01 12:53:31 |
8835 |
to previous |
a91-155-176-245 |
Fix typo "the" => "then" |
view |
51 |
2012-02-01 12:52:43 |
8834 |
to previous |
a91-155-176-245 |
Remove Warn(), use plain echo |
view |
50 |
2012-02-01 12:49:38 |
8830 |
to previous |
a91-155-176-245 |
fix typo in word "everything" |
view |
49 |
2012-02-01 12:45:42 |
8829 |
to previous |
a91-155-176-245 |
Remove Die() |
view |
48 |
2012-02-01 12:42:26 |
8745 |
to previous |
a91-155-176-245 |
Add missing #!/bin/sh |
view |
47 |
2012-02-01 12:40:34 |
8732 |
to previous |
a91-155-176-245 |
Adjust case statement in code |
view |
46 |
2012-02-01 12:38:04 |
8730 |
to previous |
a91-155-176-245 |
Add missing {{{ markup |
view |
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 |