diff options
Diffstat (limited to 'getopt/getopt-test.bash')
-rwxr-xr-x | getopt/getopt-test.bash | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/getopt/getopt-test.bash b/getopt/getopt-test.bash new file mode 100755 index 000000000..149e1f9b0 --- /dev/null +++ b/getopt/getopt-test.bash @@ -0,0 +1,6 @@ +#!/bin/bash +if `getopt -T >/dev/null 2>&1` ; [ $? = 4 ] ; then + echo "Enhanced getopt(1)" +else + echo "Old getopt(1)" +fi |