Sign in
plan9port
/
plan9
/
a0f1e21ff939612898d63ae2245e47dffc1a8153
/
.
/
bin
/
Bwait
blob: 004296094812801a09fd9b84ce2b321adae31eff [
file
] [
log
] [
blame
]
#!/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
[
"x$stat"
!=
"x$nstat"
]
then
exit
fi
done