blob: 80a22eccb7b0fb020622f3f7cf6657b1ab404185 [file] [log] [blame]
rsc93fb4702003-10-11 03:58:19 +00001#!/bin/sh
2
3# run B but then wait for the file to change.
4# great to set as $EDITOR.
5# the notion of a file changing is a little weak.
6
7stat=`ls -l $1`
8B "$@"
rsc3c282792004-04-21 21:01:52 +00009while sleep 1
rsc93fb4702003-10-11 03:58:19 +000010do
11 nstat=`ls -l $1`
rscdbd7b9a2003-11-23 18:29:08 +000012 if [ "x$stat" != "x$nstat" ]
rsc93fb4702003-10-11 03:58:19 +000013 then
14 exit
15 fi
16done
17