fix handling when a proper getopt(1) is available; the "--"

end-of-options marker wasn't recognized
This commit is contained in:
Fred Drake 2004-06-29 14:39:06 +00:00
parent 93b4b88e96
commit 96b935e643
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ while [ "$#" -gt 0 ] ; do
EXPLANATION="`cat $2`"
shift 2
;;
--)
shift 1
break
;;
-*)
echo "Unknown option: $1" >&2
exit 2