On 09/05/2010 11:36 AM, Pierre Gaston wrote:
using the following:

false; : | echo $?

bash and ksh93 print 0
pdksh, dash and zsh print 1

It's not especially useful, but I'm wondering if there is any reason
for this. (I would expect 1)

Thanks
Pierre

In bash, echo is run in the subshell. I'm not sure about the other shells.

RR

Reply via email to