summaryrefslogtreecommitdiff
path: root/getopt/getopt-test.tcsh
diff options
context:
space:
mode:
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