On Sat, May 02 2020,Nicholas Marriott wrote:
> You need a \ before ; so it gets passed to tmux rather than interpreted by the shell.
>
[snipped 17 lines]
>
> --8<---------------cut here---------------start------------->8---
>
> tmux new-session -d -s MySession -n Shell1 -d "/usr/bin/env bash -i"
> tmux split-window -t MySession:1 "/usr/bin/env bash -i ; selectl tiled"
> tmux split-window -t MySession:1 "/usr/bin/env bash -i ;selectl tiled"
> tmux split-window -t MySession:1 "/usr/bin/env bash -i ;selectl tiled"
> tmux split-window -t MySession:1 "/usr/bin/env bash -c \"echo 'fifth shell'\"; /usr/bin/env bash -i ;selectl tiled"
> tmux select-layout -t MySession:1 tiled
> --8<---------------cut here---------------end--------------->8---
Putting a slash before ; resulted in 4 panes showing up briefly and
it all went away to be replaced with a single pane. Upon exit, same
error message was there.
The one below worked and I got 5 panes with the last pane taking up the full
screen width at the bottom.
--8<---------------cut here---------------start------------->8---
tmux new-session -d -s MySession -n Shell1 -d "/usr/bin/env bash -i"
tmux select-layout -t MySession:1 tiled
tmux split-window -t MySession:1 "/usr/bin/env bash -i"
tmux select-layout -t MySession:1 tiled
tmux split-window -t MySession:1 "/usr/bin/env bash -i"
tmux select-layout -t MySession:1 tiled
tmux split-window -t MySession:1 "/usr/bin/env bash -i"
tmux select-layout -t MySession:1 tiled
tmux split-window -t MySession:1 "/usr/bin/env bash -i"
tmux select-layout -t MySession:1 tiled
--8<---------------cut here---------------end--------------->8---
This is on 3.1b.
sivaram
--