mirror of
https://github.com/tmate-io/tmate.git
synced 2025-03-28 16:16:28 +01:00
Use exec on default shell command.
This commit is contained in:
parent
aaa98ab4a2
commit
ab6170d6bf
6
tmux.c
6
tmux.c
@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.c,v 1.23 2007-10-03 12:43:47 nicm Exp $ */
|
||||
/* $Id: tmux.c,v 1.24 2007-10-03 12:56:02 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -202,9 +202,9 @@ main(int argc, char **argv)
|
||||
status_lines = 1;
|
||||
|
||||
shell = getenv("SHELL");
|
||||
if (shell == NULL)
|
||||
if (shell == NULL || *shell == '\0')
|
||||
shell = "/bin/ksh";
|
||||
xasprintf(&default_command, "%s -l", shell);
|
||||
xasprintf(&default_command, "exec %s -l", shell);
|
||||
|
||||
found = NULL;
|
||||
for (i = 0; i < NOP; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user