为什么scp报错后退出状态为0?

Why does scp has an exit status of 0 after reporting an error?

无论是在 Linux 还是 Cygwin 上,我都得到以下信息(注意用户名中的无效 space):

>scp file.txt "invalid user@host.com:file.txt"
invalid user: invalid user name
>echo $?
0

为什么退出状态是0?

注意:我知道与 scp 相关的 known bug 静默失败 - 但在上述情况下,错误会打印到 stderr。

似乎是一个错误。我reported它。