1
0
Fork 0
bash/tests/getopts8.sub
Daniel Baumann fa1b3d3922
Adding upstream version 5.2.37.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 06:49:21 +02:00

13 lines
144 B
Text

f()
{
typeset OPTIND=1
typeset opt
while getopts ":abcxyz" opt
do
echo opt: "$opt"
if [[ $opt = y ]]; then f -abc ; fi
done
}
f -xyz