rizin/test/db/cmd/feat_quote
Riccardo Schirone 86d20b2d16
RzShell: Remove possibility to switch to oldshell (#2420)
Due to some commands/tests still using the legacy "..." commands, we
can't fully remove oldshell code yet, but with this patch we just hide
it from the end users. Rzshell is now the default and only shell and
rzshell autocompletion is the default and only autocompletion engine.
2022-03-17 14:49:34 +01:00

69 lines
707 B
Text

NAME=Double quotes - rzshell
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 - rzshell
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 - rzshell
FILE==
CMDS=<<EOF
w "Hello $(?e World)"
ps
w0 15
w 'Hello $(?e World)'
ps
w0 15
w "Hello \$(?e World)"
ps
w0 15
EOF
EXPECT=<<EOF
Hello World
Hello $(?e World)
Hello $(?e World)
EOF
RUN