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
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,
2 matches
Mail list logo