From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5915 invoked from network); 28 Jul 2004 11:05:05 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Jul 2004 11:05:05 -0000 Received: (qmail 42000 invoked from network); 28 Jul 2004 11:04:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Jul 2004 11:04:59 -0000 Received: (qmail 19589 invoked by alias); 28 Jul 2004 11:04:16 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7778 Received: (qmail 19579 invoked from network); 28 Jul 2004 11:04:15 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 28 Jul 2004 11:04:15 -0000 Received: (qmail 40575 invoked from network); 28 Jul 2004 11:02:17 -0000 Received: from dsl3-63-249-88-2.cruzio.com (HELO binome.blorf.net) (63.249.88.2) by a.mx.sunsite.dk with SMTP; 28 Jul 2004 11:02:15 -0000 Received: by binome.blorf.net (Postfix, from userid 1000) id 7702DF1EC; Wed, 28 Jul 2004 04:02:13 -0700 (PDT) Date: Wed, 28 Jul 2004 04:02:13 -0700 From: Wayne Davison To: Petre Bandac Cc: zsh-users@sunsite.dk Subject: Re: bash command incompatibility Message-ID: <20040728110213.GA30625@blorf.net> References: <20040728110734.157a74e4@xxl.rdsbv.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040728110734.157a74e4@xxl.rdsbv.ro> User-Agent: Mutt/1.5.6+20040523i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=6.0 tests=BAYES_00 autolearn=no version=2.63 X-Spam-Hits: -4.9 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 If you enable the option hist_allow_clobber, then any time you get a "file exists" error, you can just recall the command from the history and press Enter because the '|' will have been added for you. Finally, you can avoid the problem all together by using cp: cp /dev/null fetchmail.log That works in any shell and is easier to type. ..wayne..