]> git.ipfire.org Git - thirdparty/util-linux.git/commit
getops: improve getopt-parse.bash example
authorSami Kerola <kerolasa@iki.fi>
Wed, 27 Jul 2016 10:17:47 +0000 (11:17 +0100)
committerSami Kerola <kerolasa@iki.fi>
Wed, 27 Jul 2016 15:08:43 +0000 (16:08 +0100)
commitd27f5fe770025e456fbd33b87a96968f34c455ed
treed077794a65d32b1ba472d0044b9e2430e433f0fd
parent10e8d7a324202b87846599058037ae5695c5e58c
getops: improve getopt-parse.bash example

Use correct names of example scripts in the script.  Remove use of
backticks, they require quoting that makes the example harder to follow.
Split one-liners to one-command-at-a-time expressions.  Add continue keyword
to avoid additional case statement matching.  Be strict with quoting.

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/getopt-parse.bash
misc-utils/getopt-parse.tcsh