Subject: Re: correct shell behaviour?
To: NetBSD Userlevel Technical Discussion List <firstname.lastname@example.org>
From: Andrew Brown <email@example.com>
Date: 08/12/2002 09:54:44
>> 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
...which doesn't actually "execute" since it's even less of a built-in
than, eg, echo. it can't have an exit code, per se, except perhaps as
a reflection of something that happened during the assignment.
|-----< "CODE WARRIOR" >-----|
firstname.lastname@example.org * "ah! i see you have the internet
email@example.com (Andrew Brown) that goes *ping*!"
firstname.lastname@example.org * "information is power -- share the wealth."