diff options
| author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2022-12-02 19:19:27 +0900 |
|---|---|---|
| committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2022-12-02 19:32:11 +0900 |
| commit | 1be52186b4aed40eb9fe295691932037ecf6c6ab (patch) | |
| tree | 942e557c4463d80a95be958050ed7a4ec9bc3301 /Test/D06subscript.ztst | |
| parent | unposted (cf. 51016): Add a test case for underscore-followed-by-digits in ma... (diff) | |
| download | zsh-1be52186b4aed40eb9fe295691932037ecf6c6ab.tar zsh-1be52186b4aed40eb9fe295691932037ecf6c6ab.tar.gz zsh-1be52186b4aed40eb9fe295691932037ecf6c6ab.tar.bz2 zsh-1be52186b4aed40eb9fe295691932037ecf6c6ab.tar.lz zsh-1be52186b4aed40eb9fe295691932037ecf6c6ab.tar.xz zsh-1be52186b4aed40eb9fe295691932037ecf6c6ab.tar.zst zsh-1be52186b4aed40eb9fe295691932037ecf6c6ab.zip | |
51079: metafy sep in array subscript flag (s:sep:)
this enable sep to contain \0 etc.
Diffstat (limited to 'Test/D06subscript.ztst')
| -rw-r--r-- | Test/D06subscript.ztst | 5 |
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 |
