From 3798eb141a434d900300e2068078d95d4a38d381 Mon Sep 17 00:00:00 2001 From: Khairul Azhar Kasmiran Date: Sat, 2 Mar 2024 10:25:54 +0800 Subject: [PATCH] Fix tests and examples --- librz/core/cmd_descs/cmd_alias.yaml | 4 ++-- librz/core/cmd_descs/cmd_descs.c | 4 ++-- test/db/cmd/cmd_interpret | 2 +- test/db/cmd/cmd_pt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/librz/core/cmd_descs/cmd_alias.yaml b/librz/core/cmd_descs/cmd_alias.yaml index 2e2ac47ad31..fe079f4875e 100644 --- a/librz/core/cmd_descs/cmd_alias.yaml +++ b/librz/core/cmd_descs/cmd_alias.yaml @@ -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=" diff --git a/librz/core/cmd_descs/cmd_descs.c b/librz/core/cmd_descs/cmd_descs.c index 9be88c4f6ba..3eeb5c975a9 100644 --- a/librz/core/cmd_descs/cmd_descs.c +++ b/librz/core/cmd_descs/cmd_descs.c @@ -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" }, diff --git a/test/db/cmd/cmd_interpret b/test/db/cmd/cmd_interpret index f654c1471f7..163e8c51827 100644 --- a/test/db/cmd/cmd_interpret +++ b/test/db/cmd/cmd_interpret @@ -25,7 +25,7 @@ CMDS=<