diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 12:56:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 12:56:02 +0000 |
commit | ab6170d6bfafba722a6ce84221dd8b1854f0c742 (patch) | |
tree | c39ccd8209316639d64cf005231da848609aa21b /tmux.c | |
parent | aaa98ab4a2d70014ecae09941f292775d08fa7ee (diff) | |
download | rtmux-ab6170d6bfafba722a6ce84221dd8b1854f0c742.tar.gz rtmux-ab6170d6bfafba722a6ce84221dd8b1854f0c742.tar.bz2 rtmux-ab6170d6bfafba722a6ce84221dd8b1854f0c742.zip |
Use exec on default shell command.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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++) { |