From ab6170d6bfafba722a6ce84221dd8b1854f0c742 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 3 Oct 2007 12:56:02 +0000 Subject: Use exec on default shell command. --- tmux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tmux.c') 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 @@ -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++) { -- cgit v1.2.3