repo.or.cz
/
tmux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'obsd-master'
[tmux.git]
/
regress
/
new-window-command.sh
blob
b83376e4dcd2f815aced99a9cc6ed4d68e1f8f43
1
#!/bin/sh
2
3
# new session command
4
5
PATH
=/
bin
:/
usr
/
bin
6
TERM
=
screen
7
8
[
-z
"
$TEST_TMUX
"
] &&
TEST_TMUX
=
$
(
readlink
-f
..
/
tmux
)
9
TMUX
=
"
$TEST_TMUX
-Ltest"
10
$TMUX
kill-server
2
>/
dev
/
null
11
12
TMP
=
$
(
mktemp
)
13
trap
"rm -f
$TMP
"
0 1 15
14
15
cat
<<EOF >
$TMP
16
new
17
neww sleep 101
18
neww -- sleep 102
19
neww "sleep 103"
20
EOF
21
22
$TMUX
-f
$TMP
start
23
[
$
(
$TMUX
lsw|
wc
-l
)
-eq
4
]
||
exit
1
24
$TMUX
kill-server
2
>/
dev
/
null
25
26
exit
0