about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:30:47 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:30:47 +0000
commite4b214328e5b4d6b38f117cb391e664adc38ddca (patch)
tree2e032997ce9d63284a34abe564338cc0b689cf29
parent8b0f39cf326a27bbfce75a4e16b7d90dbbbfa0c3 (diff)
downloadzsh-e4b214328e5b4d6b38f117cb391e664adc38ddca.tar.gz
zsh-e4b214328e5b4d6b38f117cb391e664adc38ddca.tar.xz
zsh-e4b214328e5b4d6b38f117cb391e664adc38ddca.zip
moved from ./Test/03quoting.ztst
-rw-r--r--Test/A03quoting.ztst26
1 files changed, 26 insertions, 0 deletions
diff --git a/Test/A03quoting.ztst b/Test/A03quoting.ztst
new file mode 100644
index 000000000..6cf86e10f
--- /dev/null
+++ b/Test/A03quoting.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
+>'