On Sat, Oct 15, 2005 at 09:59:21PM +0200, Jonas Smedegaard wrote: > -----BEGIN PGP SIGNED MESSAGE----- > -while getopts "d:km:o:r:" flag; do > - case $flag in > - d) > - echo "$PROG: $flag unsupported" > +TEMP=`getopt -o d:km:o:r: --long > supported-host-version:,supported-target-version: -n "$prg" -- "$@"`
Neat, but i guess that this syntax was not included in the getopt documentation i found, or i would have used it. > +# Check for non-GNU getopt > +if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi Is --long a NGNU getopt feature, and are we always guaranteed to have such a thing ? Friendly, Sven Luther -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]