Merge branch 'obsd-master'
[tmux.git] / regress / new-window-command.sh
blobb83376e4dcd2f815aced99a9cc6ed4d68e1f8f43
1 #!/bin/sh
3 # new session command
5 PATH=/bin:/usr/bin
6 TERM=screen
8 [ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
9 TMUX="$TEST_TMUX -Ltest"
10 $TMUX kill-server 2>/dev/null
12 TMP=$(mktemp)
13 trap "rm -f $TMP" 0 1 15
15 cat <<EOF >$TMP
16 new
17 neww sleep 101
18 neww -- sleep 102
19 neww "sleep 103"
20 EOF
22 $TMUX -f$TMP start
23 [ $($TMUX lsw|wc -l) -eq 4 ] || exit 1
24 $TMUX kill-server 2>/dev/null
26 exit 0