about summary refs log tree commit diff
path: root/Test/03quoting.ztst
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-13 19:06:59 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-13 19:06:59 +0000
commitf83b8fe5fc71b6a717ec579a333035f12abae597 (patch)
tree30b9cd27b59910001ef0fa57d09c4b739a57f554 /Test/03quoting.ztst
parent0964ce61859fdcf29c0d35f138e1fe8aa7b82133 (diff)
downloadzsh-f83b8fe5fc71b6a717ec579a333035f12abae597.tar.gz
zsh-f83b8fe5fc71b6a717ec579a333035f12abae597.tar.xz
zsh-f83b8fe5fc71b6a717ec579a333035f12abae597.zip
zsh-workers/9024
Diffstat (limited to 'Test/03quoting.ztst')
-rw-r--r--Test/03quoting.ztst26
1 files changed, 26 insertions, 0 deletions
diff --git a/Test/03quoting.ztst b/Test/03quoting.ztst
new file mode 100644
index 000000000..6cf86e10f
--- /dev/null
+++ b/Test/03quoting.ztst
@@ -0,0 +1,26 @@
+%test
+  print 'single  quotes'  "double  quotes"  `echo backquotes`
+0:Simple use of quotes
+>single  quotes double  quotes backquotes
+
+  foo=text
+  print -r '$foo\\\' "$foo\$foo\\\"\``echo bar`\`\"" `print -r $foo\\\``
+0:Quoting inside quotes
+>$foo\\\ text$foo\"`bar`" text`
+
+  print -r $'\'ut queant laxis\'\n"resonare fibris"'
+0:$'-style quotes
+>'ut queant laxis'
+>"resonare fibris"
+
+  print -r ''''
+  setopt rcquotes
+# We need to set rcquotes here for the next example since it is
+# needed while parsing.
+0:No RC_QUOTES with single quotes
+>
+
+  print -r ''''
+  unsetopt rcquotes
+0:Yes RC_QUOTES with single quotes
+>'