Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2002 21:30:02 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, "J. Mallett" <jmallett@FreeBSD.org>
Subject:   Re: cvs commit: src/usr.bin/sed main.c sed.1
Message-ID:  <XFMail.20020507213002.jhb@FreeBSD.org>
In-Reply-To: <p0511173eb8fe0c98ead4@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help

On 07-May-2002 Garance A Drosihn wrote:
> At 9:46 PM +0000 5/7/02, J. Mallett wrote:
>>On Tue, May 07, 2002 at 11:32:18AM -0700, J. Mallett wrote:
>>>  jmallett    2002/05/07 11:32:18 PDT
>>>
>>>    Modified files:
>>>      usr.bin/sed          main.c sed.1
>>>    Log:
>>  >   Add a -i option to sed(1) to do inplace editing, to give
>>  >   us an alternative to Perl for such things.
>>
>>Patch to remove the "droppings" as jhb put it, if a nil
>>extension is specified.
>>
>>I'll implement a -I option which takes no arguments on
>>top of this, if it looks kosher.
> 
> I am not quite sure we should debate this on the cvs-lists,
> but I don't want to move it to -arch or -hackers just yet
> either...
> 
> If I think back to the standards definition of 'xargs', the
> capital letter options *require* the extra parameter, and
> the lowercase options do not.  I will admit the lowercase
> options also allow for a screwy "tacked-on optional string",
> but I will ignore that kind of option as we do not want to
> go in that direction.
> 
> Thus, I would suggest that options be '-I <prefix>' or just
> plain '-i', where -i is the same as '-I ""'.

This would allow 'sed -ie' which perl currently can't handle as
well.  I actually think this suggestion might be the best but
that's just MO. :)

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020507213002.jhb>