mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-30 16:40:57 +00:00
1b3e24257e
Test fix: db/cmd/feat_quote Quotes and substitution - newshell Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
76 lines
836 B
Plaintext
76 lines
836 B
Plaintext
NAME=Double quotes - newshell
|
|
ARGS=-e cfg.newshell=true
|
|
FILE=-
|
|
CMDS=<<EOF
|
|
w "Hello World"
|
|
ps
|
|
w0 15
|
|
w "\"Hello World\""
|
|
ps
|
|
w0 15
|
|
w "Hello;World"
|
|
ps
|
|
w0 15
|
|
w "Hello@World"
|
|
ps
|
|
EOF
|
|
EXPECT=<<EOF
|
|
Hello World
|
|
"Hello World"
|
|
Hello;World
|
|
Hello@World
|
|
EOF
|
|
RUN
|
|
|
|
NAME=Single quotes - newshell
|
|
ARGS=-e cfg.newshell=true
|
|
FILE=-
|
|
CMDS=<<EOF
|
|
w 'Hello World'
|
|
ps
|
|
w0 15
|
|
w '"Hello World"'
|
|
ps
|
|
w0 15
|
|
w '\'Hello World\''
|
|
ps
|
|
w0 15
|
|
w 'Hello;World'
|
|
ps
|
|
w0 15
|
|
w 'Hello@World'
|
|
ps
|
|
EOF
|
|
EXPECT=<<EOF
|
|
Hello World
|
|
"Hello World"
|
|
'Hello World'
|
|
Hello;World
|
|
Hello@World
|
|
EOF
|
|
RUN
|
|
|
|
NAME=Quotes and substitution - newshell
|
|
ARGS=-e cfg.newshell=true
|
|
FILE=-
|
|
CMDS=<<EOF
|
|
w "Hello $(?e World)"
|
|
ps
|
|
w0 15
|
|
w 'Hello $(?e World)'
|
|
ps
|
|
w0 15
|
|
w "Hello \$(?e World)"
|
|
ps
|
|
w0 17
|
|
w 'Hello \`?e World\`'
|
|
ps
|
|
w0 17
|
|
EOF
|
|
EXPECT=<<EOF
|
|
Hello World
|
|
Hello $(?e World)
|
|
Hello $(?e World)
|
|
Hello `?e World`
|
|
EOF
|
|
RUN |