plan9port/bin/Bwait
rsc dbd7b9a97e various shell script fixes.
add 9a, 9c, 9l wrapper scripts.
label sets label on xterm/9term
2003-11-23 18:29:08 +00:00

17 lines
243 B
Bash
Executable 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 [ "x$stat" != "x$nstat" ]
then
exit
fi
done