And another.

pull/884/merge
Nicholas Marriott 2017-04-25 13:50:44 +01:00
parent 1b221a56ea
commit 9794c03537
3 changed files with 27 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh
# 882
# TERM should come from outside tmux for if-shell from the config file
PATH=/bin:/usr/bin
TERM=screen

View File

@ -1,6 +1,7 @@
#!/bin/sh
# 883
# if-shell with an error should not core :-)
PATH=/bin:/usr/bin
TERM=screen

View File

@ -0,0 +1,25 @@
#!/bin/sh
# 869
# new with no client (that is, from the config file) should imply -d and
# not attach
PATH=/bin:/usr/bin
TERM=screen
[ -z "$TEST_TMUX" ] && TEST_TMUX=../tmux
TMUX="$TEST_TMUX -Ltest"
$TMUX kill-server 2>/dev/null
TMP=$(mktemp)
trap "rm -f $TMP" 0 1 15
cat <<EOF >$TMP
new -stest
EOF
$TMUX -f$TMP start || exit 1
sleep 1 && $TMUX has -t=test: || exit 1
$TMUX kill-server 2>/dev/null
exit 0