summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2017-08-03 21:50:18 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2017-08-03 21:50:18 +0100
commit039a34cca5fb2ad1ae16e5a5914bdab3071b7186 (patch)
tree0b8733322ac2d2186d9f6e704934105efe2c1472
parenta51cd62b4567e5c18b4a2b7c98bb3087013afdc3 (diff)
downloadzsh-039a34cca5fb2ad1ae16e5a5914bdab3071b7186.tar.gz
zsh-039a34cca5fb2ad1ae16e5a5914bdab3071b7186.tar.xz
zsh-039a34cca5fb2ad1ae16e5a5914bdab3071b7186.zip
41485: test for previous fix
-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'