mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
moved from ./Test/03quoting.ztst
This commit is contained in:
parent
8b0f39cf32
commit
e4b214328e
1 changed files with 26 additions and 0 deletions
26
Test/A03quoting.ztst
Normal file
26
Test/A03quoting.ztst
Normal file
|
@ -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
|
||||
>'
|
Loading…
Reference in a new issue