[email protected] wrote:
$ ed /tmp/
Is a directory

So why doesn't it just exit? Like
$ cat /tmp/
cat: /tmp/: Is a directory

Mainly because ed has behaved this way since version 0.2 (1994), at least.

Also because starting with an empty buffer when the input file can't be read (for whatever reason) is not an unreasonable thing to do for an editor.

Is there any reason why ed should just exit in these cases?


Regards,
Antonio.

_______________________________________________
bug-ed mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-ed

Reply via email to