illumos-port-bash/tests/quote.right

183 lines
1.9 KiB
Plaintext

Single Quote
foo
bar
foo
bar
foo\
bar
Double Quote
foo
bar
foo
bar
foobar
Backslash Single Quote
foo bar
foo bar
foobar
Backslash Double Quote
foo bar
foo bar
foobar
Double Quote Backslash Single Quote
foo
bar
foo
bar
foobar
Dollar Paren Single Quote
foo bar
foo bar
foo\ bar
Dollar Paren Double Quote
foo bar
foo bar
foobar
Double Quote Dollar Paren Single Quote
foo
bar
foo
bar
foo\
bar
argv[1] = <foo \\^Jbar>
argv[1] = <foo \^Jbar>
argv[1] = <sed> argv[2] = <-e> argv[3] = <s/[^I:]/\^J/g>
argv[1] = <sed> argv[2] = <-e> argv[3] = <s/[^I:]//g>
argv[1] = <foo\^Jbar>
argv[1] = <foobar>
argv[1] = <foo\^Jbar>
b
a
b
c
argv[1] = <a\>
argv[2] = <b>
argv[1] = <$>
argv[2] = <bab>
argv[1] = <$foo>
argv[2] = <bab>
argv[1] = <$foo>
argv[2] = <bab>
argv[1] = <`>
argv[2] = <ab>
argv[1] = <\>
argv[2] = <ab>
${
argv[1] = <(")>
argv[1] = <(")>
string \
string \
string \
string \
string \
string \}
'weferfds'\''dsfsdf'
'weferfdsdsfsdf'
'weferfds'\''dsfsdf'
'weferfds'\\dsfsdf'
testdd ddtest
testdd '\''ddtest
testdddding
testdddding
test'ing
test'ing
test'string
a'b'c
foo b c baz
foo 'bar baz
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[2] = <>
argv[1] = <>
argv[2] = <>
argv[1] = <>
=====
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[2] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[2] = <>
=====
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[2] = <>
argv[1] = <>
argv[2] = <>
argv[1] = <>
=====
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[1] = <>
argv[2] = <>
argv[1] = <>
argv[2] = <>
argv[1] = <>
argv[1] = <4>
argv[2] = <>
argv[1] = <ab>
argv[2] = <>
argv[1] = <ab>
argv[2] = <>
argv[1] = <ab>
argv[2] = <>
argv[1] = <ab>
argv[2] = <>
argv[1] = <ab ''>
argv[1] = <ab >
argv[1] = <ab ''>
argv[1] = <ab >
0
1
1
1
1
1
1
1
2
2
2
2
0
1
1
1
1
1
1
1
2
2
2
2
0
0
0
2
2
4
4
3
argv[1] = <^?>
argv[1] = <^?>
argv[1] = <^?>
argv[1] = <^?>
argv[1] = <^?>
argv[1] = <^?>