summaryrefslogtreecommitdiffstats
path: root/misc-utils/getopt-parse.tcsh
diff options
context:
space:
mode:
authorSami Kerola2016-07-27 12:17:47 +0200
committerSami Kerola2016-07-27 17:08:43 +0200
commitd27f5fe770025e456fbd33b87a96968f34c455ed (patch)
treed077794a65d32b1ba472d0044b9e2430e433f0fd /misc-utils/getopt-parse.tcsh
parentagetty: call uname() only when necessary (diff)
downloadkernel-qcow2-util-linux-d27f5fe770025e456fbd33b87a96968f34c455ed.tar.gz
kernel-qcow2-util-linux-d27f5fe770025e456fbd33b87a96968f34c455ed.tar.xz
kernel-qcow2-util-linux-d27f5fe770025e456fbd33b87a96968f34c455ed.zip
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>
Diffstat (limited to 'misc-utils/getopt-parse.tcsh')
-rw-r--r--misc-utils/getopt-parse.tcsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc-utils/getopt-parse.tcsh b/misc-utils/getopt-parse.tcsh
index 408c4706b..032d7ac08 100644
--- a/misc-utils/getopt-parse.tcsh
+++ b/misc-utils/getopt-parse.tcsh
@@ -1,9 +1,9 @@
#!/bin/tcsh
-# A small example program for using the new getopt(1) program.
-# This program will only work with tcsh(1)
-# An similar program using the bash(1) script language can be found
-# as parse.bash
+# A small example script for using the getopt(1) program.
+# This script will only work with tcsh(1).
+# A similar script using the bash(1) language can be found
+# as getopt-parse.bash.
# Example input and output (from the tcsh prompt):
# ./parse.tcsh -a par1 'another arg' --c-long 'wow\!*\?' -cmore -b " very long "