aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
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.1
parentb4efd1ca89132dcf24acd6dc7b1ccee369b7d90c (diff)
downloadrtmux-084d07f4eb5dc3d90e28725524147e66a25b869b.tar.gz
rtmux-084d07f4eb5dc3d90e28725524147e66a25b869b.tar.bz2
rtmux-084d07f4eb5dc3d90e28725524147e66a25b869b.zip
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.1')
-rw-r--r--tmux.18
1 files changed, 6 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 9d09c5a6..31e94d62 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1070,8 +1070,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.