4
while getopts :ac name "$@"
12
# this came in in a bug report -- it's really a usage error
13
# but it shouldn't cause the shell to crash
17
if [ ! -z "$aflag" ] ; then echo -a specified ; fi
18
if [ ! -z "$cflag" ] ; then echo -c specified ; fi
20
if [ "$OPTIND" -gt 1 ]
22
shift $(( $OPTIND - 1 ))
25
echo remaining args: "$*"