From cd80bc80120767fcd30f38e6329b6347ab06f555 Mon Sep 17 00:00:00 2001 From: tg Date: Fri, 6 Jul 2007 11:54:34 +0000 Subject: [PATCH] these can't be nested and are expected to fail, although our error message is different from bash's that's okay --- check.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/check.t b/check.t index a59926a..2d9d22a 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.124 2007/07/06 02:22:55 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.125 2007/07/06 11:54:34 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 $ @@ -4080,7 +4080,7 @@ expected-stdout: name: varexpand-substr-3 description: Check that some things that work in bash fail. - This is by design. + This is by design. And that some things fail in both. stdin: export x=abcdefghi n=2 "$0" -c 'print v${x:(n)}x' @@ -4088,10 +4088,12 @@ stdin: "$0" -c 'print x${x:n}x' "$0" -c 'print y${x:}x' "$0" -c 'print z${x}x' + "$0" -c 'x=abcdef;y=123;echo ${x:${y:2:1}:2}' >/dev/null 2>&1; print $? expected-stdout: vcdefghix wcdefghix zabcdefghix + 1 expected-stderr-pattern: /x:n.*bad substitution.*\n.*bad substitution/ ---