From 7f5b2f570961cd9b20f322d7f45318878a1a4b29 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 8 Dec 2015 15:08:24 +0000 Subject: 37348: Tests and fix for ${(q+)...}. Needs dupstring() for empty string case. --- Test/D07multibyte.ztst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Test/D07multibyte.ztst') 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!' -- cgit 1.4.1