aboutsummaryrefslogtreecommitdiff
path: root/bin/E
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-04-21 21:01:52 +0000
committerrsc <devnull@localhost>2004-04-21 21:01:52 +0000
commit3c2827901d9b965b3e0716e5e7284fdcd6ce7760 (patch)
tree065872d6fbe3a4a4b40a7e1e012825cd5993da7e /bin/E
parentf21f37f219965af3980ba50bac429658d19615d1 (diff)
downloadplan9port-3c2827901d9b965b3e0716e5e7284fdcd6ce7760.tar.gz
plan9port-3c2827901d9b965b3e0716e5e7284fdcd6ce7760.tar.bz2
plan9port-3c2827901d9b965b3e0716e5e7284fdcd6ce7760.zip
Rename Bwait to E.
Diffstat (limited to 'bin/E')
-rwxr-xr-xbin/E17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/E b/bin/E
new file mode 100755
index 00000000..80a22ecc
--- /dev/null
+++ b/bin/E
@@ -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 sleep 1
+do
+ nstat=`ls -l $1`
+ if [ "x$stat" != "x$nstat" ]
+ then
+ exit
+ fi
+done
+