Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Silent shell but not silent script
- X-seq: zsh-users 9363
- From: Mike Hernandez <sequethin@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Silent shell but not silent script
- Date: Fri, 2 Sep 2005 07:30:09 -0400
- 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=
- In-reply-to: <20050902110911.GA158@DervishD>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050902110911.GA158@DervishD>
- Reply-to: sequethin@xxxxxxxxx
On 9/2/05, DervishD <zsh@xxxxxxxxxxxx> 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 ] ?
Mike
Messages sorted by:
Reverse Date,
Date,
Thread,
Author