Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Saving error return code in a pipeline
- X-seq: zsh-users 9005
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: Saving error return code in a pipeline
- Date: Thu, 30 Jun 2005 15:30:48 +0200
- In-reply-to: <20050630120058.GA28910@xxxxxxxxxxxxx>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20050630093307.GA23323@DervishD> <20050630120058.GA28910@xxxxxxxxxxxxx>
Hi Stephane :)
* Stephane Chazelas <Stephane@xxxxxxxxxxxxx> dixit:
> > I can use MULTIOS, of course, but I don't want to use it
> > for all my commands...
> >
> > Is there any better solution than this?:
> >
> > script.install >(tee install.log) 2>&1
> [...]
> zsh has what it calls mult_ios (mult_ios option which is on by
> default) that performs a tee internally when a fd is redirected
> several times.
Look the paragraph above ;)
> But you can also do:
> script.install |& tee install.log
> script_exit_status=$pipestatus[1]
Better solution for the script, thanks :)
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...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author