mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-02 10:16:21 +00:00
display the help for the % command (#7283)
This commit is contained in:
parent
97cb38258b
commit
910d65da02
@ -1105,7 +1105,24 @@ static int cmd_pointer(void *data, const char *input) {
|
||||
}
|
||||
|
||||
static int cmd_env(void *data, const char *input) {
|
||||
return r_core_cmdf ((RCore*)data, "env %s", input);
|
||||
RCore *core = (RCore*)data;
|
||||
int ret = true;
|
||||
switch (*input) {
|
||||
case '?':
|
||||
{
|
||||
const char* help_msg[] = {
|
||||
"Usage:", "%[name[=value]]", "Set each NAME to VALUE in the environment",
|
||||
"%", "", "list all environment variables",
|
||||
"%", "SHELL", "prints SHELL value",
|
||||
"%", "TMPDIR=/tmp", "sets TMPDIR value to \"/tmp\"",
|
||||
NULL};
|
||||
r_core_cmd_help (core, help_msg);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ret = r_core_cmdf (core, "env %s", input);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cmd_system(void *data, const char *input) {
|
||||
|
Loading…
Reference in New Issue
Block a user