Subject: Re: correct shell behaviour?
To: David Laight <firstname.lastname@example.org>
From: Greg A. Woods <email@example.com>
Date: 08/11/2002 16:55:33
[ On Sunday, August 11, 2002 at 21:14:13 (+0100), David Laight wrote: ]
> Subject: Re: correct shell behaviour?
> Ok then what about:
> $ (exit 2)
> $ a=`echo a; exit 3`
> $ echo $?
> The expectation here is that $? refers to the `` pipeline.
> ie it is possible to test the result of such items.
No, absolutely not. The last list (pipeline, whatever) is the
Greg A. Woods
+1 416 218-0098; <firstname.lastname@example.org>; <email@example.com>
Planix, Inc. <firstname.lastname@example.org>; VE3TCP; Secrets of the Weird <email@example.com>