mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
51079: metafy sep in array subscript flag (s:sep:)
this enable sep to contain \0 etc.
This commit is contained in:
parent
291940bae6
commit
1be52186b4
3 changed files with 17 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue