summaryrefslogtreecommitdiff
path: root/getopt/getopt-test.tcsh
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:26:12 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:26:12 +0100
commitdf1dddf9ffcfc1e291de809c0e8b9060bfea02ee (patch)
tree03b712bddec33d05754bf59d31a75d7e2022761e /getopt/getopt-test.tcsh
parenta5a16c68537f8c3e5e61c5fb1680ee9f82b70a4d (diff)
downloadutil-linux-old-df1dddf9ffcfc1e291de809c0e8b9060bfea02ee.tar.gz
Imported from util-linux-2.12 tarball.
Diffstat (limited to 'getopt/getopt-test.tcsh')
-rwxr-xr-xgetopt/getopt-test.tcsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/getopt/getopt-test.tcsh b/getopt/getopt-test.tcsh
new file mode 100755
index 00000000..d661e767
--- /dev/null
+++ b/getopt/getopt-test.tcsh
@@ -0,0 +1,7 @@
+#!/bin/tcsh
+getopt -T >&/dev/null
+if ( $status == 4) then
+ echo "Enhanced getopt(1)"
+else
+ echo "Old getopt(1)"
+endif