diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 12:34:16 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-03 12:34:16 +0000 |
commit | fe06744d66e66b0b8e3839dbca5791001be5e58d (patch) | |
tree | 8dc1240b8d30e8ccd85fc2fd6b58633ec7dc349e /tmux.c | |
parent | dadc56d754f2e86dec96bcf3bed54090538ce336 (diff) | |
download | rtmux-fe06744d66e66b0b8e3839dbca5791001be5e58d.tar.gz rtmux-fe06744d66e66b0b8e3839dbca5791001be5e58d.tar.bz2 rtmux-fe06744d66e66b0b8e3839dbca5791001be5e58d.zip |
String/number arguments..
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.c,v 1.21 2007-10-03 11:26:34 nicm Exp $ */ +/* $Id: tmux.c,v 1.22 2007-10-03 12:34:16 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -36,6 +36,7 @@ volatile sig_atomic_t sigwinch; volatile sig_atomic_t sigterm; int debug_level; u_int status_lines; +char *default_command; void sighandler(int); @@ -172,6 +173,7 @@ int main(int argc, char **argv) { const struct op *op, *found; + const char *shell; char *path; int opt; u_int i; @@ -199,6 +201,11 @@ main(int argc, char **argv) status_lines = 1; + shell = getenv("SHELL"); + if (shell == NULL) + shell = "/bin/ksh"; + xasprintf(&default_command, "%s -l", shell); + found = NULL; for (i = 0; i < NOP; i++) { op = op_table + i; |