【问题标题】:Why does scp has an exit status of 0 after reporting an error?为什么scp报错后退出状态为0?
【发布时间】:2018-01-31 16:27:18
【问题描述】:

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

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

为什么退出状态是0?

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

【问题讨论】:

标签: linux scp


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-29
    相关资源
    最近更新 更多