mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-07 13:51:16 +00:00
Update cmd_eval / en[v]? case help message
This commit is contained in:
parent
208f76bab4
commit
0360057781
@ -21,6 +21,7 @@ static const char *help_msg_e[] = {
|
||||
"ee", "var", "open editor to change the value of var",
|
||||
"ed", "", "open editor to change the ~/.radare2rc",
|
||||
"ej", "", "list config vars in JSON",
|
||||
"en", "", "list environment vars",
|
||||
"env", " [k[=v]]", "get/set environment variable",
|
||||
"er", " [key]", "set config key as readonly. no way back",
|
||||
"es", " [space]", "list all eval spaces [or keys]",
|
||||
@ -368,7 +369,10 @@ static int cmd_eval(void *data, const char *input) {
|
||||
}
|
||||
break;
|
||||
case 'n': // "en" "env"
|
||||
if (!strchr (input, '=')) {
|
||||
if (strchr (input, '?')) {
|
||||
r_core_cmd_help_match_spec (core, help_msg_e, "en", 0, false);
|
||||
break;
|
||||
} else if (!strchr (input, '=')) {
|
||||
char *var, *p;
|
||||
var = strchr (input, ' ');
|
||||
if (var) while (*var==' ') var++;
|
||||
|
Loading…
Reference in New Issue
Block a user