I'm not sure this is actually a bug since dash act the same way
but it's quite unexpected for the average user and the manual suggests
it should not act like this.
The solution may be to improve the manual instead of fixing the software.
Please, consider the 3 next lines
#1
pierre@zebulon: ~ $ (set -e ; echo A ; false ; echo B ) ; echo C.$?
A
C.1
#Works fine
#2
pierre@zebulon: ~ $ (set -e ; echo A ; false ; echo B ) && echo C.$?
A
B
C.0
#Surprising
#3
pierre@zebulon: ~ $ bash -c 'set -e ; echo A ; false ; echo B ' && echo C.$?
A
#This line works like I was expecting for #2
Repeat-By:
already explained in description
Fix:
no idea.
If it's not a bug, I think the manual should explain the difference
between #2 and #3 in section 3.2.3 and 3.2.4.3