37 lines
475 B
Text
37 lines
475 B
Text
NAME=cmd substitution
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
%v $(echo 10)0
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x64
|
|
EOF
|
|
RUN
|
|
|
|
NAME=cmd substitution in @@s:
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
s @@s:0x10 $(echo 0x20 4)
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x10
|
|
0x14
|
|
0x18
|
|
0x1c
|
|
EOF
|
|
RUN
|
|
|
|
NAME=cmd substitution in @@s:
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
wx 9091909190919090909090
|
|
/x 90 @(2 6)
|
|
/x 90 @($(echo 0 4))
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x00000002 1 hit.bytes.0
|
|
0x00000004 1 hit.bytes.1
|
|
0x00000000 1 hit.bytes.0
|
|
0x00000002 1 hit.bytes.1
|
|
EOF
|
|
RUN
|