1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01:00

51278: make (i) subscript flag for zero-length string consistent

This commit is contained in:
Peter Stephenson 2023-01-16 11:10:02 +00:00
parent 857bc4343b
commit 03292bceec
3 changed files with 16 additions and 1 deletions

View file

@ -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