Cross Reference: getopts2.0
xref
: /
freebsd-11.0-release
/
bin
/
sh
/
tests
/
builtins
/
getopts2.0
Home
History
Annotate
Raw
Download
only in
/freebsd-11.0-release/bin/sh/tests/builtins/
Deleted
Added
sdiff
udiff
text
old ( 259210 )
new ( 297752 )
full
compact
getopts2.0 (259210)
getopts2.0 (297752)
1
# $FreeBSD: head/bin/sh/tests/builtins/getopts2.0
182301 2008-08-27 20:26:34Z stefanf
$
1
# $FreeBSD: head/bin/sh/tests/builtins/getopts2.0
297752 2016-04-09 16:06:13Z jilles
$
2
set - -ax
3
getopts ax option
4
set -C
5
getopts ax option
2
set - -ax
3
getopts ax option
4
set -C
5
getopts ax option
6
echo $option
6
printf '%s\n' "$option"