diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2023-01-16 11:10:02 +0000 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2023-01-16 11:10:02 +0000 |
| commit | 03292bceecba1ca39745f82fe37f321d08b138e4 (patch) | |
| tree | bed61efea2f1732a1d294aeac6e8ea71c158dd00 /Test/D06subscript.ztst | |
| parent | 51297: update expected test results to match more optimised escape sequences ... (diff) | |
| download | zsh-03292bceecba1ca39745f82fe37f321d08b138e4.tar zsh-03292bceecba1ca39745f82fe37f321d08b138e4.tar.gz zsh-03292bceecba1ca39745f82fe37f321d08b138e4.tar.bz2 zsh-03292bceecba1ca39745f82fe37f321d08b138e4.tar.lz zsh-03292bceecba1ca39745f82fe37f321d08b138e4.tar.xz zsh-03292bceecba1ca39745f82fe37f321d08b138e4.tar.zst zsh-03292bceecba1ca39745f82fe37f321d08b138e4.zip | |
51278: make (i) subscript flag for zero-length string consistent
Diffstat (limited to 'Test/D06subscript.ztst')
| -rw-r--r-- | Test/D06subscript.ztst | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
