为什么 Windows 命令提示符 COPY 命令将错误消息写入 STDOUT 而不是 STDERR?
通常,如果您尝试复制不存在的文件,您会收到一条错误消息: C:\temp>copy foo bar The system cannot find the file specified. 我希望该错误消息被写入 STDERR,但它似乎被写入了 STDOUT: C:\temp>copy foo bar >out C:\temp>dir Directory of C:\temp 23/09/2019 16:18 44 out 1 File(s) ...