Subject: Re: correct shell behaviour?
To: NetBSD Userlevel Technical Discussion List <email@example.com>
From: Andrew Brown <firstname.lastname@example.org>
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" >-----|
email@example.com * "ah! i see you have the internet
firstname.lastname@example.org (Andrew Brown) that goes *ping*!"
email@example.com * "information is power -- share the wealth."