blob: 35814b9b08ba14b8e729bd54bab95dec2b418d6c (
plain) (
blame)
1
2
3
4
5
6
7
8
|
# $FreeBSD: head/bin/sh/tests/builtins/getopts8.0 265849 2014-05-10 19:18:49Z jilles $
set -- -yz -wx
opt=wrong1 OPTARG=wrong2
while getopts :x opt; do
echo "$opt:${OPTARG-unset}"
done
echo "OPTIND=$OPTIND"
|