3 # new session environment
8 [ -z "$TEST_TMUX" ] && TEST_TMUX
=$
(readlink
-f ..
/tmux
)
9 TMUX
="$TEST_TMUX -Ltest"
10 $TMUX kill-server
2>/dev
/null
15 trap "rm -f $TMP $OUT $SCRIPT" 0 1 15
28 new -- /bin/sh $SCRIPT
31 (cd /; env
-i TERM
=ansi TEST
=test1 PATH
=1 SHELL
=/bin
/sh \
32 $TMUX -f$TMP start
) ||
exit 1
34 (cat <<EOF|cmp -s - $OUT) || exit 1
42 (cd /; env
-i TERM
=ansi TEST
=test2 PATH
=2 SHELL
=/bin
/sh \
43 $TMUX -f$TMP new
-d -- /bin
/sh
$SCRIPT) ||
exit 1
45 (cat <<EOF|cmp -s - $OUT) || exit 1
53 (cd /; env
-i TERM
=ansi TEST
=test3 PATH
=3 SHELL
=/bin
/sh \
54 $TMUX -f/dev
/null new
-d source $TMP) ||
exit 1
56 (cat <<EOF|cmp -s - $OUT) || exit 1
64 $TMUX kill-server
2>/dev
/null