Instant Terminal Sharing
Go to file
Nicholas Marriott 084d07f4eb 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.
2009-07-08 05:26:45 +00:00
arg.c Don't access array[-1] if array is an empty string. 2009-06-02 11:18:59 +00:00
array.h Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
attributes.c Don't dereference NULL if buf winds up being empty. Can't happen 2009-06-02 11:14:08 +00:00
buffer-poll.c Nuke unused buffer functions. Found by lint. 2009-06-25 06:05:47 +00:00
buffer.c Nuke unused buffer functions. Found by lint. 2009-06-25 06:05:47 +00:00
cfg.c Unused prototypes. Found by lint, no binary change. 2009-06-25 06:00:45 +00:00
client-fn.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
client-msg.c Make code clearer: 2009-06-02 11:17:03 +00:00
client.c Remove some dead assignments, found by sthen with clang. 2009-06-25 22:09:20 +00:00
clock.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-attach-session.c Remove trailing newlines, spaces, and tabs. 2009-06-05 03:13:16 +00:00
cmd-bind-key.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-break-pane.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-choose-session.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-choose-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-clear-history.c Unused prototypes. Found by lint, no binary change. 2009-06-25 06:00:45 +00:00
cmd-clock-mode.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-command-prompt.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-confirm-before.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-copy-buffer.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-copy-mode.c Don't try to page up with scroll-mode -u or copy-mode -u unless the mode was 2009-06-29 07:11:20 +00:00
cmd-delete-buffer.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-detach-client.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-down-pane.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-find-window.c Change find-window and monitor-content to use fnmatch(3). For convenience and 2009-06-24 22:49:56 +00:00
cmd-generic.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-has-session.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-kill-pane.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-kill-server.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-kill-session.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-kill-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-last-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-link-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-list-buffers.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-list-clients.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-list-commands.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-list-keys.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-list-sessions.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-list-windows.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-list.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-load-buffer.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-lock-server.c Unused prototypes. Found by lint, no binary change. 2009-06-25 06:00:45 +00:00
cmd-move-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-new-session.c Rename the global options variables to be shorter and to make session options 2009-07-07 19:49:19 +00:00
cmd-new-window.c Minor fix: look for default-path in the options for the specified session first 2009-07-07 06:58:49 +00:00
cmd-next-layout.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-next-window.c Add missing documentation for the -a flag used to move to next/previous window 2009-06-03 15:58:40 +00:00
cmd-paste-buffer.c Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error 2009-07-02 16:15:43 +00:00
cmd-previous-layout.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-previous-window.c Add missing documentation for the -a flag used to move to next/previous window 2009-06-03 15:58:40 +00:00
cmd-refresh-client.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-rename-session.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-rename-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-resize-pane.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-respawn-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-rotate-window.c Use the pane flags not the window flags. Doh. 2009-06-25 08:08:18 +00:00
cmd-save-buffer.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-scroll-mode.c Don't try to page up with scroll-mode -u or copy-mode -u unless the mode was 2009-06-29 07:11:20 +00:00
cmd-select-layout.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-select-pane.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-select-prompt.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-select-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-send-keys.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-send-prefix.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-server-info.c Use vis(3) instead of handrolled function. 2009-06-03 19:37:27 +00:00
cmd-set-buffer.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-set-option.c Rename the global options variables to be shorter and to make session options 2009-07-07 19:49:19 +00:00
cmd-set-password.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-set-window-option.c Rename the global options variables to be shorter and to make session options 2009-07-07 19:49:19 +00:00
cmd-show-buffer.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-show-options.c Rename the global options variables to be shorter and to make session options 2009-07-07 19:49:19 +00:00
cmd-show-window-options.c Rename the global options variables to be shorter and to make session options 2009-07-07 19:49:19 +00:00
cmd-source-file.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-split-window.c The fix for default-path (use target session options instead of global options) 2009-07-07 07:01:10 +00:00
cmd-start-server.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-string.c strdup the input to putenv to avoid in one case passing a string that is later 2009-06-05 07:18:37 +00:00
cmd-suspend-client.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-swap-pane.c When swapping pane positions, swap the PANE_HIDDEN flag as well, otherwise tmux 2009-06-03 07:51:24 +00:00
cmd-swap-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-switch-client.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-unbind-key.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-unlink-window.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd-up-pane.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
cmd.c Don't let ambiguous commands override an exact alias match: eg if commands 2009-07-07 21:23:22 +00:00
colour.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
grid-view.c Fix two errors with character/line insertion and deletion: the maximum number 2009-06-29 21:30:50 +00:00
grid.c Miscellaneous unused functions, including one which was basically a 2009-06-25 06:15:04 +00:00
input-keys.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
input.c Implement the CBT (backward tab) sequence (\033[Z). 2009-06-04 21:02:21 +00:00
key-bindings.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
key-string.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
layout-manual.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
layout.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
log.c tmux doesn't and won't need syslog logging, so remove it and some other unused 2009-06-25 06:23:10 +00:00
Makefile diagflags for diags 2009-06-25 07:42:41 +00:00
mode-key.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
names.c Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX, 2009-07-08 05:26:45 +00:00
options-cmd.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
options.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
paste.c Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error 2009-07-02 16:15:43 +00:00
procname.c Also #ifndef nitems here, caught by Thomas Jeunet. 2009-06-26 10:55:37 +00:00
resize.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
screen-redraw.c Unused variables. Found by lint, no binary change. 2009-06-25 05:56:44 +00:00
screen-write.c Fix two errors with character/line insertion and deletion: the maximum number 2009-06-29 21:30:50 +00:00
screen.c Fix a type mismatch warning in assignment. 2009-06-24 22:51:47 +00:00
server-fn.c When unlocking the server, don't try to clear the prompt on clients without a 2009-06-30 13:40:30 +00:00
server-msg.c Handle empty or unset TERM correctly; also fix a fatal() message while here. 2009-07-07 17:24:32 +00:00
server.c Rename the global options variables to be shorter and to make session options 2009-07-07 19:49:19 +00:00
session.c Rename the global options variables to be shorter and to make session options 2009-07-07 19:49:19 +00:00
status.c Status line fixes: don't truncate status-right now the length calculation is 2009-06-26 15:13:39 +00:00
tmux.1 Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX, 2009-07-08 05:26:45 +00:00
tmux.c Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX, 2009-07-08 05:26:45 +00:00
tmux.h Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX, 2009-07-08 05:26:45 +00:00
tty-keys.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
tty-term.c Remove trailing newlines, spaces, and tabs. 2009-06-05 03:13:16 +00:00
tty-write.c Miscellaneous unused functions, including one which was basically a 2009-06-25 06:15:04 +00:00
tty.c Handle empty or unset TERM correctly; also fix a fatal() message while here. 2009-07-07 17:24:32 +00:00
utf8.c Miscellaneous unused functions, including one which was basically a 2009-06-25 06:15:04 +00:00
window-choose.c Now that a UTF-8-capable puts function exists, use it for printing strings in 2009-06-24 23:00:31 +00:00
window-clock.c Use gmtime_r so the current time isn't overwritten, the minute comparison works 2009-06-27 14:40:22 +00:00
window-copy.c Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error 2009-07-02 16:15:43 +00:00
window-more.c Miscellaneous unused functions, including one which was basically a 2009-06-25 06:15:04 +00:00
window-scroll.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00
window.c Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX, 2009-07-08 05:26:45 +00:00
xmalloc.c Import tmux, a terminal multiplexor allowing (among other things) a single 2009-06-01 22:58:49 +00:00