summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-08 05:26:45 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-08 05:26:45 +0000
commit084d07f4eb5dc3d90e28725524147e66a25b869b (patch)
tree0cbfab6bd64ee71d1023e83930ec7e6b8aeea2da /tmux.h
parentb4efd1ca89132dcf24acd6dc7b1ccee369b7d90c (diff)
Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX,
and some people may use shells which do not support it. Instead, make an empty default-command option mean a login shell, and fork it with a - in argv[0] which is the method used by login(1). Also fix the automatic-rename code to handle this correctly and to strip a leading - if present.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tmux.h b/tmux.h
index f9bf547a..5f3a3611 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1408,6 +1408,7 @@ int screen_check_selection(struct screen *, u_int, u_int);
/* window.c */
extern struct windows windows;
+const char *window_default_command(void);
int window_cmp(struct window *, struct window *);
int winlink_cmp(struct winlink *, struct winlink *);
RB_PROTOTYPE(windows, window, entry, window_cmp);