[Toybox] Fwd: Re: [patch] add sed

Dave toybox at overbearing.org
Sun Aug 4 00:45:46 PDT 2013


On 8/3/2013 7:25 PM, Strake wrote:
>
>> Besides that there's -i, which could be done easily by open()ing a
>> temporary file, writing to that, then renaming to the original filename.
> This violates the doctrine to do one thing well. Alas, users want it,
> and scripts use it.
>
> Giving flags to users is like giving cigarettes to children.
Frequently on a space constrained device you are forced to edit large 
files with ed because there is not enough temp space to create that temp 
file.  Frequently in a recovery situation there is zero temp space. If 
you wanted to implement the -i so it /really really /edits files *i*n 
place, that would be a good reason to eliminate ed.

-Dave


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130804/a4ccca64/attachment-0006.htm>


More information about the Toybox mailing list