摘要: APUE 3.5关于重定向有个容易迷惑人的问题: ./a.out > outfile 2>&1 ./a.out 2>&1 > outfile 问两者区别? 结果如下: 原因是: 由于bash从左往右处理,在./a.out > outfile的时候,将a.out的fd 1定向到了outfile文件的f 阅读全文
posted @ 2017-09-07 15:08 贾春旺 阅读(327) 评论(0) 推荐(0) 编辑