From 03292bceecba1ca39745f82fe37f321d08b138e4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 16 Jan 2023 11:10:02 +0000 Subject: 51278: make (i) subscript flag for zero-length string consistent --- Test/D06subscript.ztst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Test') diff --git a/Test/D06subscript.ztst b/Test/D06subscript.ztst index 21127e641..57cdc027c 100644 --- a/Test/D06subscript.ztst +++ b/Test/D06subscript.ztst @@ -299,3 +299,12 @@ F:In math, (($i)) should be the same as ((i)), see workers/47748. echo ${string[(pws:\0:)1]} 0:Word splitting by NUL >foo + + string="a" + print ${string[(i)x]} + string="" + print ${string[(i)x]} +0:Can check off end of zero length string +F:Regression test for inconsistency of failed (i) on zero-length string +>2 +>1 -- cgit 1.4.1