Sign in
plan9port
/
plan9
/
16a709666981e77a00a88a87b286b586ac77ffdc
/
.
/
bin
/
Bwait
blob: 1c6ef96f20a8e35c0399ba8a4e07f3bcf2f5d750 [
file
]
#!/bin/sh
# run B but then wait for the file to change.
# great to set as $EDITOR.
# the notion of a file changing is a little weak.
stat
=
`ls -l $1`
B
"$@"
while
true
do
nstat
=
`ls -l $1`
if
[
"$stat"
eq
"$nstat"
]
then
exit
fi
done