commit 93fb47050c80d20d668035c7d1b89d610c1aa7d8 from: rsc date: Sat Oct 11 03:58:19 2003 UTC B then wait. commit - b9b5cea4eda1c011cfc2e18c8b89987d4298cb7c commit + 93fb47050c80d20d668035c7d1b89d610c1aa7d8 blob - /dev/null blob + 1c6ef96f20a8e35c0399ba8a4e07f3bcf2f5d750 (mode 755) --- /dev/null +++ bin/Bwait @@ -0,0 +1,17 @@ +#!/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 [ "$stat" eq "$nstat" ] + then + exit + fi +done +