Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: editing file in-place with '<>'
- X-seq: zsh-users 18913
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: editing file in-place with '<>'
- Date: Mon, 23 Jun 2014 09:57:10 +0100
- In-reply-to: <20140623080608.GA2870@localhost.localdomain>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <20140623080608.GA2870@localhost.localdomain>
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