diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-07-24 22:00:19 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-07-24 22:00:19 +0000 |
commit | 50e9ab122b5022d8e90facb6ca01b32996ea16d1 (patch) | |
tree | 0bf441f7d4a77ac25fbe8ddcf8087f8526d72955 /Test/D04parameter.ztst | |
parent | 6ca7b6abdf90d68c64bd57ac07d8a52ac6dc075b (diff) | |
download | zsh-50e9ab122b5022d8e90facb6ca01b32996ea16d1.tar.gz zsh-50e9ab122b5022d8e90facb6ca01b32996ea16d1.tar.xz zsh-50e9ab122b5022d8e90facb6ca01b32996ea16d1.zip |
22556: Multibyte separators and delimiters
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r-- | Test/D04parameter.ztst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index 73e87d0f8..6e97d7450 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -725,6 +725,29 @@ >7 >8 +# Tests a long-standing bug with joining on metafied characters in IFS + (array=(one two three) + IFS=$'\0' + foo="$array" + for (( i = 1; i <= ${#foo}; i++ )); do + char=${foo[i]} + print $(( #char )) + done) +0:Joining with NULL character from IFS +>111 +>110 +>101 +>0 +>116 +>119 +>111 +>0 +>116 +>104 +>114 +>101 +>101 + unset SHLVL (( SHLVL++ )) print $SHLVL |