Hi 
I'm writting a bash script that support commandline arguments.

args=`getopt b:i: $*`
set -- $args
for i
do
case $i in
-b) echo "It should print the option parameter but it doesn't: $1";;
-i) echo "It should print the option parameter but it doesn't: $1";;
esac
done

$1 is never the optional parameter I run the script as followed
script -b param -i param
or script -bi param param
in both cases $1 is -b
_______________________________________________
help-gnu-utils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to