0
点赞
收藏
分享

微信扫一扫

echo输出到stderr

归零者245号 2023-11-06 阅读 37

echo "Your error message here" >&2

This is a normal echo (which goes to stdout), however the >&2 (which is shorthand for 1>&2), means 'mix the stdout to the stderr'. 1 is stdout, and 2 is stderr here.



举报

相关推荐

0 条评论