* 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 `%=`
25 lines
460 B
Text
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
|