rizin/test/db/cmd/cmd_interpret
seanachao a2f8631b6c
Change -, --, = argument and = command meaning (#930)
* Swap = & - R (#615)&(#616)
* Fix R replace =
2021-04-21 16:20:24 +08:00

59 lines
526 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=.spp
FILE==
CMDS=<<EOF
. scripts/rztest.spp
EOF
EXPECT=<<EOF
Test
hello world
Eron
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.newshell=true
$foo=\#!pipe echo hello
$foo
?e --
$-*
EOF
EXPECT=<<EOF
hello
--
hello
--
hello
--
EOF
RUN