version 1.25, 2015/05/07 14:07:16 |
version 1.26, 2015/06/07 21:39:39 |
|
|
|
|
const struct cmd_entry cmd_switch_client_entry = { |
const struct cmd_entry cmd_switch_client_entry = { |
"switch-client", "switchc", |
"switch-client", "switchc", |
"lc:npt:rT:", 0, 0, |
"lc:Enpt:rT:", 0, 0, |
"[-lnpr] [-c target-client] [-t target-session] [-T key-table]", |
"[-Elnpr] [-c target-client] [-t target-session] [-T key-table]", |
CMD_READONLY, |
CMD_READONLY, |
cmd_switch_client_exec |
cmd_switch_client_exec |
}; |
}; |
|
|
} |
} |
} |
} |
|
|
if (c != NULL && s != c->session) { |
if (c != NULL && s != c->session && !args_has(args, 'E')) { |
update = options_get_string(&s->options, "update-environment"); |
update = options_get_string(&s->options, "update-environment"); |
environ_update(update, &c->environ, &s->environ); |
environ_update(update, &c->environ, &s->environ); |
} |
} |