[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ed] why doesn't ed on a directory just exit
From: |
Antonio Diaz Diaz |
Subject: |
Re: [Bug-ed] why doesn't ed on a directory just exit |
Date: |
Mon, 19 Nov 2012 14:09:09 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
address@hidden 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.