Subject: Re: correct shell behaviour?
To: David Laight <email@example.com>
From: Greg A. Woods <firstname.lastname@example.org>
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; <email@example.com>; <firstname.lastname@example.org>
Planix, Inc. <email@example.com>; VE3TCP; Secrets of the Weird <firstname.lastname@example.org>