From: Pavel Roskin Date: Wed, 15 Jun 2005 00:17:45 GMT Subject: Re: [COGITO PATCH] Fixing "cg-help typo" again Message-ID: <1118794665.3890.16.camel@dv> In-Reply-To: <20050614234333.GA17152@diku.dk> Hi, Jonas! On Wed, 2005-06-15 at 01:43 +0200, Jonas Fonseca wrote: > Pavel Roskin wrote Tue, Jun 14, 2005: > > I don't know any way to get return status of the first command in a > > pipeline, so I changed to code to put print_help() output in a variable, > > check status and then pipe the variable contents through colorize(). > > Use the PIPESTATUS aray as in the patch I sent: OK, your patch is better. Acked-by: Pavel Roskin -- Regards, Pavel Roskin