From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1166 invoked from network); 2 Sep 2005 14:19:09 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Sep 2005 14:19:09 -0000 Received: (qmail 6184 invoked from network); 2 Sep 2005 14:19:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Sep 2005 14:19:03 -0000 Received: (qmail 16908 invoked by alias); 2 Sep 2005 14:18:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9364 Received: (qmail 16896 invoked from network); 2 Sep 2005 14:18:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Sep 2005 14:18:51 -0000 Received: (qmail 4705 invoked from network); 2 Sep 2005 14:18:51 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 2 Sep 2005 14:18:45 -0000 Received: from 212.red-80-35-44.pooles.rima-tde.net ([80.35.44.212]:32790 helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.52) id 1EBCNS-00083J-VO; Fri, 02 Sep 2005 16:18:47 +0200 Date: Fri, 2 Sep 2005 16:22:52 +0200 From: DervishD To: Mike Hernandez Cc: Zsh Users Subject: Re: Silent shell but not silent script Message-ID: <20050902142252.GA451@DervishD> Mail-Followup-To: Mike Hernandez , Zsh Users References: <20050902110911.GA158@DervishD> <3060c23905090204302b8c1d91@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3060c23905090204302b8c1d91@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Hi Mike :) * Mike Hernandez dixit: > On 9/2/05, DervishD wrote: > > Sometimes the command I have to run won't exist, so zsh will > > issue that error. How the heck can I make zsh not to spill the error > > message but at the same time let the command to use stderr and > > stdout? I mean, I can silent zsh doing this: > Why not test to see if the command exists before doing anything > with it? Something like if [ -x $command ] ? Because that's not enough, I'm afraid. If the command is an script with a bangpath and the interpreter doesn't exist, the "[[ -x command ]]" test will succeed but the execution will fail. By the way, in that case zsh will return 127 instead of the correct 126, although if I recall correctly, that has been dealt with in latest CVS :? Thanks for your suggestion :) I'm looking for something in that line, but it's quite difficult. It has to be portable or at least work in zsh and bash, that will cover nearly 90% of the boxes, and that's a problem by itself. Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net http://www.pleyades.net & http://www.gotesdelluna.net It's my PC and I'll cry if I want to...