Skip to content

Commit

Permalink
Fix tests and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy committed Mar 2, 2024
1 parent 596693c commit 3798eb1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions librz/core/cmd_descs/cmd_alias.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ commands:
arg_str: "dis=-"
comment: "Open cfg.editor to set the new value for dis alias"
- text: "$"
arg_str: "\"dis=af;pdf\""
arg_str: "dis=\"af;pdf\""
comment: "Create command - analyze to show function"
- text: "$"
arg_str: "\"test=#!pipe node /tmp/test.js\""
arg_str: "test=\\#!pipe node /tmp/test.js"
comment: "Create command - rlangpipe script"
- text: "$"
arg_str: "dis="
Expand Down
4 changes: 2 additions & 2 deletions librz/core/cmd_descs/cmd_descs.c
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,8 @@ static const RzCmdDescDetailEntry alias_Examples_detail_entries[] = {
{ .text = "$", .arg_str = "dis=base64:cGRm", .comment = "Alias this base64 encoded text to be executed when $dis is called" },
{ .text = "$", .arg_str = "dis=$hello world", .comment = "Alias this text to be printed when $dis is called" },
{ .text = "$", .arg_str = "dis=-", .comment = "Open cfg.editor to set the new value for dis alias" },
{ .text = "$", .arg_str = "\"dis=af;pdf\"", .comment = "Create command - analyze to show function" },
{ .text = "$", .arg_str = "\"test=#!pipe node /tmp/test.js\"", .comment = "Create command - rlangpipe script" },
{ .text = "$", .arg_str = "dis=\"af;pdf\"", .comment = "Create command - analyze to show function" },
{ .text = "$", .arg_str = "test=\\#!pipe node /tmp/test.js", .comment = "Create command - rlangpipe script" },
{ .text = "$", .arg_str = "dis=", .comment = "Undefine alias" },
{ .text = "$", .arg_str = "dis", .comment = "Execute the previously defined alias" },
{ .text = "$", .arg_str = "dis?", .comment = "Show commands aliased by $dis" },
Expand Down
2 changes: 1 addition & 1 deletion test/db/cmd/cmd_interpret
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CMDS=<<EOF
$foo=#!pipe echo hello
$foo
echo --
"$foo=#!pipe echo hello"
$foo="#!pipe echo hello"
$foo
echo --
$-*
Expand Down
2 changes: 1 addition & 1 deletion test/db/cmd/cmd_pt
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ RUN
NAME=pt boundaries
FILE=--
CMDS=<<EOF
$rz=!rizin -c '(pv4s val; wv4 ${val}; sd 4); ..(pv4s 0 0x7fffffff 0x80000000 0xffffffff); s 0; b 16; pt' -q =
$rz="!rizin -c '(pv4s val; wv4 ${val}; sd 4); ..(pv4s 0 0x7fffffff 0x80000000 0xffffffff); s 0; b 16; pt' -q ="
(TZ-rz tz; echo; env TZ=${tz}; $rz)
# When setting TZ, the sign must be reversed
..(TZ-rz GMT GMT-2:30:17 GMT+24)
Expand Down

0 comments on commit 3798eb1

Please sign in to comment.