diff options
author | Peter Stephenson <pws@zsh.org> | 2015-12-08 15:08:24 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-12-08 15:08:24 +0000 |
commit | 7f5b2f570961cd9b20f322d7f45318878a1a4b29 (patch) | |
tree | 88b737db487626fb492473126c21fed356efc1e9 /Test/D07multibyte.ztst | |
parent | 4105f79a3a9b5a85c4ce167865e5ac661be160dc (diff) | |
download | zsh-7f5b2f570961cd9b20f322d7f45318878a1a4b29.tar.gz zsh-7f5b2f570961cd9b20f322d7f45318878a1a4b29.tar.xz zsh-7f5b2f570961cd9b20f322d7f45318878a1a4b29.zip |
37348: Tests and fix for ${(q+)...}.
Needs dupstring() for empty string case.
Diffstat (limited to 'Test/D07multibyte.ztst')
-rw-r--r-- | Test/D07multibyte.ztst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst index f95c06d9a..39ba5ef8b 100644 --- a/Test/D07multibyte.ztst +++ b/Test/D07multibyte.ztst @@ -546,3 +546,10 @@ [[ $'\xe3\x83\x9b' != [[:INCOMPLETE:][:INVALID:]] ]] || print fail 3 [[ $'\xe3\x83\x9b' = ? ]] || print fail 4 0:Testing incomplete and invalid multibyte character components + + print -r -- ${(q+):-ホ} + foo='She said "ホ". I said "You can'\''t '\''ホ'\'' me!' + print -r -- ${(q+)foo} +0:${(q+)...} with printable multibyte characters +>ホ +>'She said "ホ". I said "You can'\''t '\''ホ'\'' me!' |