File: getopt-test.bash

package info (click to toggle)
util-linux 2.12r-19
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 8,928 kB
  • ctags: 5,101
  • sloc: ansic: 46,134; sh: 8,041; makefile: 1,111; perl: 86; csh: 62; sed: 55
file content (6 lines) | stat: -rwxr-xr-x 122 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
#!/bin/bash
if `getopt -T >/dev/null 2>&1` ; [ $? = 4 ] ; then
  echo "Enhanced getopt(1)"
else
  echo "Old getopt(1)"
fi