File: getopt-test.bash

package info (click to toggle)
loop-aes-utils 2.12r-15%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 8,876 kB
  • ctags: 5,077
  • sloc: ansic: 46,163; sh: 11,326; makefile: 886; 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