rizin/test/db/archos/not-windows-any/cmd_interpreter
Riccardo Schirone 9d68e9614f
Fix old math commands (#3828)
* core/cmd: Adjust math commands

* shell: make `?x` commands a parsing failure

We have moved the `?x` commands to `%x`, thus now no command should
start with `?`. This patch makes the parser fail to parse `?x`
strings.

* core/tui: use APIs in panels

* There's no `%q` anymore, use `%=`
2023-09-14 08:53:25 +08:00

25 lines
460 B
Text

NAME=#!c
FILE==
CMDS=<<EOF
echo "#include <stdio.h>\nint entry(){printf(\"Hello\\n\");return 0;}" > .tmp-hashc.c
#!c .tmp-hashc.c
rm .tmp-hashc.c
EOF
EXPECT=<<EOF
Hello
EOF
RUN
NAME=#! with ext != name
FILE==
CMDS=<<EOF
%= `env~?^ASAN_LD_PRELOAD=`
%+ env LD_PRELOAD=`env ASAN_LD_PRELOAD`
echo "#include <stdio.h>\nint main(){printf(\"Hello\\n\");return 0;}" > .tmp-hashextname.c
#!cpipe .tmp-hashextname.c
rm .tmp-hashextname.c
EOF
EXPECT=<<EOF
Hello
EOF
RUN