radare2/test/db/cmd/cmd_system

78 lines
669 B
Plaintext

NAME=!
FILE=-
CMDS=<<EOF
?e fuck
?e yeah
!echo fuck
!echo yeah
EOF
EXPECT=<<EOF
fuck
yeah
fuck
yeah
EOF
RUN
NAME=!| grep
FILE=-
CMDS=!echo fuck|grep bob
EXPECT=<<EOF
EOF
RUN
NAME=!| sed
FILE=-
CMDS=!echo fuck|sed -e s,fuck,yeah,
EXPECT=<<EOF
yeah
EOF
RUN
NAME=?e|
FILE=-
CMDS=?e fuck|sed -e s,fuck,yeah,
EXPECT=<<EOF
yeah
EOF
RUN
NAME=p8 `?e 3`
FILE=-
CMDS=p8 `?e 3`
EXPECT=<<EOF
000000
EOF
RUN
NAME=p8 `!echo 3`
FILE=-
CMDS=p8 `!echo 3`
EXPECT=<<EOF
000000
EOF
RUN
NAME=!echo "test"
FILE=-
CMDS=<<EOF
!echo test
"!echo test"
EOF
EXPECT=<<EOF
test
test
EOF
RUN
NAME=%ENV=33 !echo "${ENV}"
FILE=-
CMDS=<<EOF
%ENV=World
!echo ${ENV}
EOF
EXPECT=<<EOF
World
EOF
RUN