#639309 posh: exit status of while:;do ! break;done

Package:
posh
Source:
posh
Description:
Policy-compliant Ordinary SHell
Submitter:
Stephane Chazelas
Date:
2011-08-25 19:33:06 UTC
Severity:
normal
#639309#5
Date:
2011-08-25 19:29:35 UTC
From:
To:
$ posh -c 'while :; do ! break; done'; echo $?
0

While it should be 1.

This bug affects all the descendants of the pdksh (pdksh, posh,
mksh on debian at least).

There's a similar bug in

for i in a; do ! continue; done