123456789101112131415161718192021 |
- (
- loop=99
- while getopts "abc" var -a -bc -abc -def -a; do
- echo "var:$var"
-
- unset -ff func
- test $((--loop)) = 0 && break
- done
- echo "End: var:$var OPTIND:$OPTIND"
- ) 2>&1 \
- | sed -e 's/ unrecognized option: / invalid option -- /' \
- -e 's/ illegal option -- / invalid option -- /' \
|