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

Re: Silent shell but not silent script



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