OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Nicholas Marriott (nicmcvs.openbsd.org)
Date: Tue Sep 01 2009 - 08:09:50 CDT


CVSROOT: /cvs
Module name: src
Changes by: nicmcvs.openbsd.org 2009/09/01 07:09:50

Modified files:
        usr.bin/tmux : cmd-respawn-window.c cmd-set-option.c
                         cmd-split-window.c names.c session.c tmux.1
                         tmux.c tmux.h window.c

Log message:
When using tmux as a login shell, there is currently no way to specify a shell
to be used as a login shell inside tmux, so add a default-shell session option.
This sets the shell invoked as a login shell when the default-command option is
empty.

The default option value is whichever of $SHELL, getpwuid(getuid())'s pw_shell
or /bin/sh is valid first.

Based on a diff from martynas, changed by me to be a session option rather
than a window option.