>> >Anyone any idea where the `echo $?` gets its value from?
>> >That code outputs 1 0 1 0!
>>
>> my guess would be that since the `` bits execute in subshells which
>> haven't had any children exit yet, the only reason thing they can
>> print would be 0.
>
>but:
> echo $(echo $?)
>should output the same as:
> echo $?
i'm not convinced of that. do you have a reference to some standard
that covers this, or is this just what seems right to you?
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."