Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/bin/rc/E

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

# 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 $1
echo editing $1
while (sleep 1) {
	nstat=`{ls -l $1}
	if (! ~ $"stat $"nstat)
		exit
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.