Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: editing file in-place with '<>'



On Mon, 23 Jun 2014 16:06:08 +0800
Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx> wrote:
> I'm reading the guide and find it's not the case said in the guide
> page 132 about '<>' in-place editing.
> 
> % echo test > redirtest
> % sed 's/e/Z/g' <> redirtest 1>&0
> % cat redirtest
> test
> tZst

Yes, I get that too.  It's possible this worked at the time but the
internals have changed.  It's a long time since I wrote that and it
really seems it's a bit messy to advise users to do it that way.

pws



Messages sorted by: Reverse Date, Date, Thread, Author