From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23351 invoked from network); 2 Sep 2005 11:30:34 -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 11:30:34 -0000 Received: (qmail 79485 invoked from network); 2 Sep 2005 11:30:27 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Sep 2005 11:30:27 -0000 Received: (qmail 14522 invoked by alias); 2 Sep 2005 11:30:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9363 Received: (qmail 14512 invoked from network); 2 Sep 2005 11:30:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Sep 2005 11:30:18 -0000 Received: (qmail 78448 invoked from network); 2 Sep 2005 11:30:18 -0000 Received: from wproxy.gmail.com (64.233.184.193) by a.mx.sunsite.dk with SMTP; 2 Sep 2005 11:30:10 -0000 Received: by wproxy.gmail.com with SMTP id 57so348407wri for ; Fri, 02 Sep 2005 04:30:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AICo0L2reLIJZ5dyBqS8lAc3bBt7EDNHtwp0jU3HzkSSRGH+blQwluN7eiIBMu6rXpcdai9guMXIulBhqC1UkFhTopUD7sNQXo3Oqa67pTGWu9mhbz3E+1iE0jiuZzXsQtf2ZLr+9OWQLHMj4JhLmkHmuHgp0qogjzrAATGwjOg= Received: by 10.54.102.5 with SMTP id z5mr1197454wrb; Fri, 02 Sep 2005 04:30:09 -0700 (PDT) Received: by 10.54.68.20 with HTTP; Fri, 2 Sep 2005 04:30:09 -0700 (PDT) Message-ID: <3060c23905090204302b8c1d91@mail.gmail.com> Date: Fri, 2 Sep 2005 07:30:09 -0400 From: Mike Hernandez Reply-To: sequethin@gmail.com To: Zsh Users Subject: Re: Silent shell but not silent script In-Reply-To: <20050902110911.GA158@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050902110911.GA158@DervishD> 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.5 required=5.0 tests=BAYES_00,RCVD_BY_IP autolearn=ham version=3.0.4 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 ] ?=20 Mike