<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 8/3/2013 7:25 PM, Strake wrote:<br>
</div>
<blockquote
cite="mid:CAL3m8eB09CmKaqF9dzWHAwzxwQLgmd1=zS0C=BL560MNFXt=FQ@mail.gmail.com"
type="cite"><br>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">
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.
</pre>
</blockquote>
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 <i>really
really </i>edits files <b>i</b>n place, that would be a good
reason to eliminate ed.<br>
<br>
-Dave<br>
</body>
</html>