rename regression-56 into exit-eval-1 and change expected output
from what AT&T ksh88 does to what AT&T ksh93 does and POSuX expects Reported by Clint Adams as Debian #550717, to be fixed...
This commit is contained in:
parent
888c7befea
commit
b694bde402
53
check.t
53
check.t
@ -1,4 +1,4 @@
|
|||||||
# $MirOS: src/bin/mksh/check.t,v 1.322 2009/10/14 18:04:52 tg Exp $
|
# $MirOS: src/bin/mksh/check.t,v 1.323 2009/10/14 18:06:57 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 $
|
||||||
@ -3773,32 +3773,6 @@ expected-stdout:
|
|||||||
7 blah
|
7 blah
|
||||||
8 blah
|
8 blah
|
||||||
---
|
---
|
||||||
name: regression-56
|
|
||||||
description:
|
|
||||||
Check eval vs substitution exit codes
|
|
||||||
(this is what ksh88 does)
|
|
||||||
stdin:
|
|
||||||
eval $(false)
|
|
||||||
echo A $?
|
|
||||||
eval ' $(false)'
|
|
||||||
echo B $?
|
|
||||||
eval " $(false)"
|
|
||||||
echo C $?
|
|
||||||
eval "eval $(false)"
|
|
||||||
echo D $?
|
|
||||||
eval 'eval '"$(false)"
|
|
||||||
echo E $?
|
|
||||||
IFS="$IFS:"
|
|
||||||
eval $(echo :; false)
|
|
||||||
echo F $?
|
|
||||||
expected-stdout:
|
|
||||||
A 1
|
|
||||||
B 1
|
|
||||||
C 1
|
|
||||||
D 0
|
|
||||||
E 0
|
|
||||||
F 1
|
|
||||||
---
|
|
||||||
name: regression-57
|
name: regression-57
|
||||||
description:
|
description:
|
||||||
Check if typeset output is correct for
|
Check if typeset output is correct for
|
||||||
@ -4364,6 +4338,31 @@ expected-stdout:
|
|||||||
4 127 .
|
4 127 .
|
||||||
5 127 .
|
5 127 .
|
||||||
---
|
---
|
||||||
|
name: exit-eval-1
|
||||||
|
description:
|
||||||
|
Check eval vs substitution exit codes (ksh93 alike)
|
||||||
|
stdin:
|
||||||
|
eval $(false)
|
||||||
|
echo A $?
|
||||||
|
eval ' $(false)'
|
||||||
|
echo B $?
|
||||||
|
eval " $(false)"
|
||||||
|
echo C $?
|
||||||
|
eval "eval $(false)"
|
||||||
|
echo D $?
|
||||||
|
eval 'eval '"$(false)"
|
||||||
|
echo E $?
|
||||||
|
IFS="$IFS:"
|
||||||
|
eval $(echo :; false)
|
||||||
|
echo F $?
|
||||||
|
expected-stdout:
|
||||||
|
A 0
|
||||||
|
B 1
|
||||||
|
C 0
|
||||||
|
D 0
|
||||||
|
E 0
|
||||||
|
F 0
|
||||||
|
---
|
||||||
name: test-stlt-1
|
name: test-stlt-1
|
||||||
description:
|
description:
|
||||||
Check that test also can handle string1 < string2 etc.
|
Check that test also can handle string1 < string2 etc.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user