Bug#990266: posh: output error is not checked for pwd

2021-07-05 Thread Vincent Lefevre
On 2021-06-24 11:54:40 +0200, Vincent Lefevre wrote: > Like with ksh, output error is not checked for pwd (and maybe some > other builtins, but echo is OK), e.g. after closing stdout. > > $ exec >&- > $ for i in echo pwd; do echo "[$i]" >&2; $i; echo $? >&2; done > [echo] > 1 > [pwd] > 0 Since a

Bug#990266: posh: output error is not checked for pwd

2021-06-24 Thread Vincent Lefevre
Package: posh Version: 0.14.1 Severity: normal Like with ksh, output error is not checked for pwd (and maybe some other builtins, but echo is OK), e.g. after closing stdout. $ exec >&- $ for i in echo pwd; do echo "[$i]" >&2; $i; echo $? >&2; done [echo] 1 [pwd] 0 Note also that for pwd,