mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
And another.
This commit is contained in:
parent
1b221a56ea
commit
9794c03537
@ -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
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# 883
|
||||
# if-shell with an error should not core :-)
|
||||
|
||||
PATH=/bin:/usr/bin
|
||||
TERM=screen
|
||||
|
25
regress/new-session-no-client.sh
Normal file
25
regress/new-session-no-client.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user