version 1.96, 2017/01/13 11:56:43 |
version 1.97, 2017/01/24 20:15:32 |
|
|
struct window *w; |
struct window *w; |
struct environ *env; |
struct environ *env; |
struct termios tio, *tiop; |
struct termios tio, *tiop; |
const char *newname, *target, *update, *errstr, *template; |
const char *newname, *target, *errstr, *template; |
const char *path, *cmd, *cwd, *to_free = NULL; |
const char *path, *cmd, *cwd, *to_free = NULL; |
char **argv, *cause, *cp; |
char **argv, *cause, *cp; |
int detached, already_attached, idx, argc; |
int detached, already_attached, idx, argc; |
|
|
|
|
/* Construct the environment. */ |
/* Construct the environment. */ |
env = environ_create(); |
env = environ_create(); |
if (c != NULL && !args_has(args, 'E')) { |
if (c != NULL && !args_has(args, 'E')) |
update = options_get_string(global_s_options, |
environ_update(global_s_options, c->environ, env); |
"update-environment"); |
|
environ_update(update, c->environ, env); |
|
} |
|
|
|
/* Create the new session. */ |
/* Create the new session. */ |
idx = -1 - options_get_number(global_s_options, "base-index"); |
idx = -1 - options_get_number(global_s_options, "base-index"); |