String/number arguments..

This commit is contained in:
Nicholas Marriott
2007-10-03 12:34:16 +00:00
parent dadc56d754
commit fe06744d66
9 changed files with 203 additions and 126 deletions

9
tmux.c
View File

@ -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;