allow -- to end options

This commit is contained in:
rsc 2005-03-18 18:51:02 +00:00
parent 237c30900c
commit 074347f4e4

4
bin/g
View file

@ -5,6 +5,10 @@ flags=""
while [ $# != 0 -a $inflags = yes ]
do
case "$1" in
--)
inflags=no
shift
;;
-*)
flags="$flags $1"
shift