mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-14 07:49:01 +02:00
String/number arguments..
This commit is contained in:
9
tmux.c
9
tmux.c
@ -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;
|
||||
|
Reference in New Issue
Block a user