summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Test/A03quoting.ztst5
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0336c8787..997c0d9dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2017-08-03  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 41485: Test/A03quoting.ztst: test for previous fix.
+
 	* Martijn: 41484: Src/utils.c: ${(q+)...} didn't properly
 	quote backslashes.
 
diff --git a/Test/A03quoting.ztst b/Test/A03quoting.ztst
index da3ce359a..be9ca66de 100644
--- a/Test/A03quoting.ztst
+++ b/Test/A03quoting.ztst
@@ -78,3 +78,8 @@
  () { print $# } '' "" $''
 0:$'' should not be elided, in common with other empty quotes
 >3
+
+ foo=$'one\\two\n\'buckle\'\tmy\\shoe\n'
+ print -r ${(q+)foo}
+0:Extended minimal quoting of quotes and backslashes
+>$'one\\two\n\'buckle\'\tmy\\shoe\n'