remove regression-44 in favour of utilities-getopts-1 (the former checked
the AT&T ksh88 behaviour, the latter the AT&T ksh93 behaviour, which dif- fer from each other, on the very same thing with the exact same test)
This commit is contained in:
parent
8b4314cbcd
commit
c7a8b367f8
17
check.t
17
check.t
@ -1,4 +1,4 @@
|
|||||||
# $MirOS: src/bin/mksh/check.t,v 1.330 2009/10/15 16:24:49 tg Exp $
|
# $MirOS: src/bin/mksh/check.t,v 1.331 2009/10/15 16:32:23 tg Exp $
|
||||||
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
|
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
|
||||||
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
|
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
|
||||||
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
|
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
|
||||||
@ -3465,21 +3465,6 @@ description:
|
|||||||
stdin:
|
stdin:
|
||||||
< /dev/null (sed 's/^/X/')
|
< /dev/null (sed 's/^/X/')
|
||||||
---
|
---
|
||||||
name: regression-44
|
|
||||||
description:
|
|
||||||
getopts sets OPTIND correctly for unparsed option
|
|
||||||
stdin:
|
|
||||||
set -- -a -a -x
|
|
||||||
while getopts :a optc; do
|
|
||||||
echo "OPTARG=$OPTARG, OPTIND=$OPTIND, optc=$optc."
|
|
||||||
done
|
|
||||||
echo done
|
|
||||||
expected-stdout:
|
|
||||||
OPTARG=, OPTIND=2, optc=a.
|
|
||||||
OPTARG=, OPTIND=3, optc=a.
|
|
||||||
OPTARG=x, OPTIND=3, optc=?.
|
|
||||||
done
|
|
||||||
---
|
|
||||||
name: regression-45
|
name: regression-45
|
||||||
description:
|
description:
|
||||||
Parameter assignments with [] recognised correctly
|
Parameter assignments with [] recognised correctly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user