Blame


1 93fb4705 2003-10-11 devnull #!/bin/sh
2 93fb4705 2003-10-11 devnull
3 93fb4705 2003-10-11 devnull # run B but then wait for the file to change.
4 93fb4705 2003-10-11 devnull # great to set as $EDITOR.
5 93fb4705 2003-10-11 devnull # the notion of a file changing is a little weak.
6 93fb4705 2003-10-11 devnull
7 93fb4705 2003-10-11 devnull stat=`ls -l $1`
8 93fb4705 2003-10-11 devnull B "$@"
9 93fb4705 2003-10-11 devnull while true
10 93fb4705 2003-10-11 devnull do
11 93fb4705 2003-10-11 devnull nstat=`ls -l $1`
12 dbd7b9a9 2003-11-23 devnull if [ "x$stat" != "x$nstat" ]
13 93fb4705 2003-10-11 devnull then
14 93fb4705 2003-10-11 devnull exit
15 93fb4705 2003-10-11 devnull fi
16 93fb4705 2003-10-11 devnull done
17 93fb4705 2003-10-11 devnull