summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-03 12:56:02 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-03 12:56:02 +0000
commitab6170d6bfafba722a6ce84221dd8b1854f0c742 (patch)
treec39ccd8209316639d64cf005231da848609aa21b /tmux.c
parentaaa98ab4a2d70014ecae09941f292775d08fa7ee (diff)
Use exec on default shell command.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tmux.c b/tmux.c
index 58ed9f93..13dbbb0e 100644
--- a/tmux.c
+++ b/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++) {