summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2022-12-02 19:19:27 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2022-12-02 19:32:11 +0900
commit1be52186b4aed40eb9fe295691932037ecf6c6ab (patch)
tree942e557c4463d80a95be958050ed7a4ec9bc3301 /Test
parent291940bae6cc0471c35c73498e873bc58dae9a95 (diff)
downloadzsh-1be52186b4aed40eb9fe295691932037ecf6c6ab.tar.gz
zsh-1be52186b4aed40eb9fe295691932037ecf6c6ab.zip
51079: metafy sep in array subscript flag (s:sep:)
this enable sep to contain \0 etc.
Diffstat (limited to 'Test')
-rw-r--r--Test/D06subscript.ztst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Test/D06subscript.ztst b/Test/D06subscript.ztst
index adbd398c4..21127e641 100644
--- a/Test/D06subscript.ztst
+++ b/Test/D06subscript.ztst
@@ -294,3 +294,8 @@ F:Regression test for workers/42297
[[ ${a[$i]} = ${a[i]} ]]
0f:Math evaluation of commas in array subscripts
F:In math, (($i)) should be the same as ((i)), see workers/47748.
+
+ string=$'foo\0bar'
+ echo ${string[(pws:\0:)1]}
+0:Word splitting by NUL
+>foo