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.
69 lines
707 B
Text
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
|