From 7c0209771c1ac027ab5a4fb83c88f19467d8ffdb Mon Sep 17 00:00:00 2001 From: tg Date: Mon, 23 Jul 2007 14:10:48 +0000 Subject: [PATCH] =?UTF-8?q?more=20testcase=20=E2=80=93=20currently=20broke?= =?UTF-8?q?n=E2=80=A6=20had=20thought=20of=20this=20but=20apparently=20not?= =?UTF-8?q?=20done?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check.t | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/check.t b/check.t index 795bc9d..46ae81a 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.127 2007/07/22 13:46:14 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.128 2007/07/23 14:10:48 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 $ @@ -4097,3 +4097,13 @@ expected-stdout: expected-stderr-pattern: /x:n.*bad substitution.*\n.*bad substitution/ --- +name: varexpand-substr-4 +description: + Check corner cases for substring expansion +stdin: + x=abcdefghi + integer y=2 + print a ${x:(y == 1 ? 2 : 3):4} a +expected-stdout: + a defg a +---