version 1.77, 2015/10/31 14:51:15 |
version 1.78, 2015/12/08 08:34:18 |
|
|
/* Get the new session working directory. */ |
/* Get the new session working directory. */ |
to_free = NULL; |
to_free = NULL; |
if (args_has(args, 'c')) { |
if (args_has(args, 'c')) { |
ft = format_create(); |
ft = format_create(0); |
format_defaults(ft, cmd_find_client(cmdq, NULL, 1), NULL, NULL, |
format_defaults(ft, cmd_find_client(cmdq, NULL, 1), NULL, NULL, |
NULL); |
NULL); |
to_free = cwd = format_expand(ft, args_get(args, 'c')); |
to_free = cwd = format_expand(ft, args_get(args, 'c')); |
|
|
if ((template = args_get(args, 'F')) == NULL) |
if ((template = args_get(args, 'F')) == NULL) |
template = NEW_SESSION_TEMPLATE; |
template = NEW_SESSION_TEMPLATE; |
|
|
ft = format_create(); |
ft = format_create(0); |
format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, NULL, |
format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, NULL, |
NULL); |
NULL); |
|
|