63 lines
788 B
Text
63 lines
788 B
Text
echo "Single Quote"
|
|
echo 'foo
|
|
bar'
|
|
echo 'foo
|
|
bar'
|
|
echo 'foo\
|
|
bar'
|
|
|
|
echo "Double Quote"
|
|
echo "foo
|
|
bar"
|
|
echo "foo
|
|
bar"
|
|
echo "foo\
|
|
bar"
|
|
|
|
echo "Backslash Single Quote"
|
|
echo `echo 'foo
|
|
bar'`
|
|
echo `echo 'foo
|
|
bar'`
|
|
echo `echo 'foo\
|
|
bar'`
|
|
|
|
echo "Backslash Double Quote"
|
|
echo `echo "foo
|
|
bar"`
|
|
echo `echo "foo
|
|
bar"`
|
|
echo `echo "foo\
|
|
bar"`
|
|
|
|
echo "Double Quote Backslash Single Quote"
|
|
echo "`echo 'foo
|
|
bar'`"
|
|
echo "`echo 'foo
|
|
bar'`"
|
|
echo "`echo 'foo\
|
|
bar'`"
|
|
|
|
echo "Dollar Paren Single Quote"
|
|
echo $(echo 'foo
|
|
bar')
|
|
echo $(echo 'foo
|
|
bar')
|
|
echo $(echo 'foo\
|
|
bar')
|
|
|
|
echo "Dollar Paren Double Quote"
|
|
echo $(echo "foo
|
|
bar")
|
|
echo $(echo "foo
|
|
bar")
|
|
echo $(echo "foo\
|
|
bar")
|
|
|
|
echo "Double Quote Dollar Paren Single Quote"
|
|
echo "$(echo 'foo
|
|
bar')"
|
|
echo "$(echo 'foo
|
|
bar')"
|
|
echo "$(echo 'foo\
|
|
bar')"
|