about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-01-27 23:52:13 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-01-27 23:52:13 +0000
commit2b948e6c375a540129883272f9c4e118ada8ab1e (patch)
treeba76260f60c76592dc76a88c84e025cabe8b8b62 /Test
parentdf54eeed2ca4823d57c2bc74fc5def7b3b4a77ae (diff)
downloadzsh-2b948e6c375a540129883272f9c4e118ada8ab1e.tar.gz
zsh-2b948e6c375a540129883272f9c4e118ada8ab1e.tar.xz
zsh-2b948e6c375a540129883272f9c4e118ada8ab1e.zip
23138: further tweak to backslashes in $'...'
Diffstat (limited to 'Test')
-rw-r--r--Test/A03quoting.ztst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/A03quoting.ztst b/Test/A03quoting.ztst
index 3187382a8..54005ebe3 100644
--- a/Test/A03quoting.ztst
+++ b/Test/A03quoting.ztst
@@ -17,6 +17,20 @@
 0:$'-style quotes with backslashed backslashes
 >'a \' is 'a backslash' is 'a \'
 
+  chars=$(print -r $'BS\\MBS\M-\\')
+  for (( i = 1; i <= $#chars; i++ )); do
+    char=$chars[$i]
+    print $(( [#16] #char ))
+  done
+0:$'-style quote with metafied backslash
+>16#42
+>16#53
+>16#5C
+>16#4D
+>16#42
+>16#53
+>16#DC
+
   print -r ''''
   setopt rcquotes
 # We need to set rcquotes here for the next example since it is