bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$? in the right side of a pipe


From: Pierre Gaston
Subject: $? in the right side of a pipe
Date: Sun, 5 Sep 2010 12:36:29 +0300

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]