6 [ -z "$TEST_TMUX" ] && TEST_TMUX
=$
(readlink
-f ..
/tmux
)
7 TMUX
="$TEST_TMUX -Ltest"
8 $TMUX kill-server
2>/dev
/null
11 trap "rm -f $TMP" 0 1 15
14 new -sfoo -nfoo0; neww -nfoo1; neww -nfoo2
15 new -sbar -nbar0; neww -nbar1; neww -nbar2
17 $TMUX -f$TMP start
</dev
/null ||
exit 1
19 $TMUX lsw
-aF '#{session_name},#{window_name}'|
sort >$TMP ||
exit 1
20 $TMUX kill-server
2>/dev
/null
21 cat <<EOF|cmp -s $TMP - || exit 1
38 $TMUX -f$TMP start
</dev
/null ||
exit 1
40 $TMUX lsw
-aF '#{session_name},#{window_name}'|
sort >$TMP ||
exit 1
41 $TMUX kill-server
2>/dev
/null
42 cat <<EOF|cmp -s $TMP - || exit 1