Subject: Re: correct shell behaviour?
To: David Laight <david@l8s.co.uk>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
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 $?

"0"

> 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
assignment statement.

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>