aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-07-01 19:42:55 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-07-01 19:42:55 +0000
commit22d1b9412e52c98cbdf52a3a5185a416c6d26c64 (patch)
tree9670391a25d42bf45bebf18f81729f5123704940 /tmux.1
parentd50810267eb471a8a6739897efaf49e369e14c65 (diff)
downloadrtmux-22d1b9412e52c98cbdf52a3a5185a416c6d26c64.tar.gz
rtmux-22d1b9412e52c98cbdf52a3a5185a416c6d26c64.tar.bz2
rtmux-22d1b9412e52c98cbdf52a3a5185a416c6d26c64.zip
Using -l to specify a login shell is non-POSIX and causes problems with shells
that do not support it. Instead, set an empty default-command to invoke $SHELL with - prefixed to argv[0], and make this the default setting.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.18
1 files changed, 6 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 57ff51dd..78fd51b0 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1044,8 +1044,12 @@ maintain this maximum length.
Set the command used for new windows (if not specified when the window is
created) to
.Ar command .
-The default is
-.Dq exec $SHELL -l .
+The default is an empty string, which instructs
+.Nm
+to create a login shell using the
+.Ev SHELL
+environment variable or, if it is unset, the user's shell returned by
+.Xr getpwuid 3 .
.It Ic default-path Ar path
Set the default working directory for processes created from keys, or
interactively from the prompt.