one more from Austin ML

This commit is contained in:
tg 2011-03-26 16:19:29 +00:00
parent 84f7055f8f
commit 79862cc1f4
1 changed files with 14 additions and 2 deletions

16
check.t
View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.434 2011/03/26 16:11:41 tg Exp $
# $MirOS: src/bin/mksh/check.t,v 1.435 2011/03/26 16:19:29 tg 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: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
@ -1392,7 +1392,7 @@ expected-stderr-pattern:
/bad substitution/
expected-exit: 1
---
name: expand-trim-1
name: expand-weird-1
description:
Check corner case of trim expansion vs. $# vs. ${#var}
stdin:
@ -1408,6 +1408,18 @@ expected-stdout:
1
2
---
name: expand-weird-2
description:
Check corner case of ${var?} vs. ${#var}
stdin:
(exit 0)
echo $? = ${#?} .
(exit 111)
echo $? = ${#?} .
expected-stdout:
0 = 1 .
111 = 3 .
---
name: eglob-bad-1
description:
Check that globbing isn't done when glob has syntax error