Accept -l to make it easier for people who use tmux as a login shell to use

$SHELL. Originally from martynas@, tweaked by me.
This commit is contained in:
Nicholas Marriott
2009-09-02 17:34:57 +00:00
parent c5ac2579ba
commit 74c35c513e
4 changed files with 18 additions and 7 deletions

View File

@ -68,8 +68,9 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx)
tim = ctime(&start_time);
*strchr(tim, '\n') = '\0';
ctx->print(ctx, "pid %ld, started %s", (long) getpid(), tim);
ctx->print(ctx, "socket path %s, debug level %d%s",
socket_path, debug_level, be_quiet ? ", quiet" : "");
ctx->print(ctx, "socket path %s, debug level %d%s%s",
socket_path, debug_level, be_quiet ? ", quiet" : "",
login_shell ? ", login shell" : "");
if (uname(&un) == 0) {
ctx->print(ctx, "system is %s %s %s %s",
un.sysname, un.release, un.version, un.machine);