version 1.1, 2009/08/08 21:52:43 |
version 1.2, 2009/11/13 19:53:29 |
|
|
const struct cmd_entry cmd_show_environment_entry = { |
const struct cmd_entry cmd_show_environment_entry = { |
"show-environment", "showenv", |
"show-environment", "showenv", |
"[-g] " CMD_TARGET_SESSION_USAGE, |
"[-g] " CMD_TARGET_SESSION_USAGE, |
0, CMD_CHFLAG('g'), |
0, "g", |
cmd_target_init, |
cmd_target_init, |
cmd_target_parse, |
cmd_target_parse, |
cmd_show_environment_exec, |
cmd_show_environment_exec, |
|
|
struct environ *env; |
struct environ *env; |
struct environ_entry *envent; |
struct environ_entry *envent; |
|
|
if (data->chflags & CMD_CHFLAG('g')) |
if (cmd_check_flag(data->chflags, 'g')) |
env = &global_environ; |
env = &global_environ; |
else { |
else { |
if ((s = cmd_find_session(ctx, data->target)) == NULL) |
if ((s = cmd_find_session(ctx, data->target)) == NULL) |