Steffen Nurpmeso <[email protected]> wrote:
 |Abu Unaysah <[email protected]> wrote:

 ||There should be an option for the `write' command (w) to overwrite
 ||the destination file instead of appending.  Either a `writeoverwrites'
 ||option or another command `Write' (W).

Ah, i recall i have added a "|" modifier back in January, with
v14.9 you will thus be able to say

  ? write . '| cat > FILE'

and use the usual shell mechanisms as necessary.
For parts this i think was already possible with Heirloom.
Of course all of this is a bit of a CRUX... until at least it is
possible to directly address individual parts but themselves.

And i just realized ed(1) uses "!" for this very purpose..
So i guess that needs to be added for the above _and_ the part
machinery first!

 |That indeed addresses a real shortcoming!

 |My idea would thus be: add a "!" command suffix, use it for
 |`write' immediately.  If set, replace existing files instead of
 |appending to them.  For attachments, ask in interactive mode
 |wether an existing file should be overwritten, default to "yes" if
 |the "!" suffix has been given, to "no" otherwise.  In non-
 |interactive mode the defaults will be always chosen.  I think this

And this somehow interferes with that idea?  On the other hand

  ? write! !cat>FILE

is quite useless for one and then doesn't look soooo weird either.
But thinking about it your *write-overwrite* looks appealing, too.
I'm just wondering what to do with the MIME parts...

--steffen

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
__________________________________
[email protected]

Reply via email to