Sign in
plan9port
/
plan9
/
4ee543e58c5e6cf5ef0b94dfec752dadbbd063d3
/
.
/
bin
/
E
blob: 80a22eccb7b0fb020622f3f7cf6657b1ab404185 [
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
sleep
1
do
nstat
=
`ls -l $1`
if
[
"x$stat"
!=
"x$nstat"
]
then
exit
fi
done