Dan Jacobson wrote:
"PJ" == Paul Jackson<p...@usa.net> writes:
PJ> might have intended only to read a file, not write it
OK, no warning then upon opening a read only file. Fine.
But ah ha, how about a warning upon using a "a" or "i" etc. command?
The other editor I maintain (GNU moe) does exactly this; if you try to
modify a read-only file it complains with "Read only". So this should be
doable in GNU ed as soon as we find a way to reset the 'read_only' flag.
Maybe by changing the name of the file with 'f'?
Suggestions are welcome.
Antonio.