Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bash command incompatibility
- X-seq: zsh-users 7783
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: bash command incompatibility
- Date: Wed, 28 Jul 2004 12:10:58 -0500
- Cc: Petre Bandac <petre@xxxxxx>, zsh-users@xxxxxxxxxx
- In-reply-to: <20040728110213.GA30625@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040728110734.157a74e4@xxxxxxxxxxxx> <20040728110213.GA30625@xxxxxxxxx>
In the last episode (Jul 28), Wayne Davison said:
> On Wed, Jul 28, 2004 at 11:07:34AM +0300, Petre Bandac wrote:
> > [petre@xxl]$ cat /dev/null > fetchmail.log
>
> As an alternative to turning off the no_clobber option (as Peter
> suggested), you can just tell zsh that you know that the file already
> exists by using a '|' after the '>', like this:
>
> cat /dev/null >|fetchmail.log
I prefer the ! syntax, since | means "pipe" to me, and vi also uses ! as a
"force" flag.
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author