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

Re: bash command incompatibility



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