CVSROOT: /cvs Module name: src Changes by: n...@cvs.openbsd.org 2009/07/07 23:26:45
Modified files: usr.bin/tmux : names.c tmux.1 tmux.c tmux.h window.c Log message: 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.