# This test can fail with libc with buggy getopt() implementation. # If getopt() wants to parse multi-option args (-abc), # it needs to remember a position within current arg. # If this position is ...
# Simple usage cases for getopts. # OPTIND is either not touched at all (first loop with getopts, # relying on shell startup init), or getopts state is reset # before new loop with "unset OPTIND", ...