rizin/test/db/cmd/cmd_interpret
2021-06-10 10:24:49 +02:00

46 lines
429 B
Text

NAME=.- (edit, source tmp file)
FILE==
CMDS=<<EOF
e cfg.editor=/bin/true
.-
EOF
EXPECT=<<EOF
EOF
RUN
NAME=.?e ?e
FILE=--
CMDS=<<EOF
.?e ?e hello world
EOF
EXPECT=<<EOF
hello world
EOF
RUN
NAME=$foo=#!pipe
FILE==
CMDS=<<EOF
#!pipe echo hello
$foo=#!pipe echo hello
$foo
?e --
"$foo=#!pipe echo hello"
$foo
?e --
$-*
e cfg.oldshell=false
$foo=\#!pipe echo hello
$foo
?e --
$-*
EOF
EXPECT=<<EOF
hello
--
hello
--
hello
--
EOF
RUN