[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invoking as 'ed - filename' broken in ed-0.3-pre[12]

From: Antonio Diaz Diaz
Subject: Re: Invoking as 'ed - filename' broken in ed-0.3-pre[12]
Date: Sat, 21 Oct 2006 12:01:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.12) Gecko/20050923

John Cowan wrote:
As for files named "-", there are many utilities that treat "-" as a
special case, not a filename (most commonly as stdin).  In all cases
"./-" may be used instead.

Of course I meant "as a filename meaning stdin".

Claudio Fontana wrote:
'-s' and '-' can coexist peacefully: POSIX explicitly states that '-'
is implementation defined.

So.. why should one break something that works?

Because it doesn't work as expected by the users of most applications? For example, I expected "cal -m | ed -" to edit the output of the "cal" command.

In the end this is a discussion about "traditional" vs "consistent" behaviour.

Please, don't worry. I am not an ed user. I am only playing devil's advocate here. I'll implement ed options as users of ed expect them to be. After all, ed-0.3-pre3 works as all of you expected. Doesn't it?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]