[Toybox] [patch] add sed
David Wilson
dave at buildengineer.com
Sun Aug 4 00:40:47 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/9eaa6875/attachment-0005.htm>
More information about the Toybox
mailing list