[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ed] ed -p flag
From: |
John Cowan |
Subject: |
Re: [Bug-ed] ed -p flag |
Date: |
Thu, 13 Oct 2011 10:27:55 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Antonio Diaz Diaz scripsit:
> Richard Hum wrote:
>> For some reason, the -p flag for ed requires a non-empty arguement. Is
>> this really necessary?
>
> Of course it isn't really necessary, but it is documented[1][2][3] this
> way and so I have maintained it this way.
Your references merely require that -p take an argument: they do not
require the argument to be non-empty. So whereas the command
$ ed -p
fails and should fail, the command
$ ed -p ''
should not fail, but it does, at least in ed 1.5.
--
LEAR: Dost thou call me fool, boy? John Cowan
FOOL: All thy other titles http://www.ccil.org/~cowan
thou hast given away: address@hidden
That thou wast born with.