这就是原因
# touch file
# ls noexist file
ls: noexist: No such file or directory
file
# ls noexist file 2>>log
file
# cat log
ls: noexist: No such file or directory
# ls noexist file | 2>> log
ls: noexist: No such file or directory
# ls noexist file | gzip 1> my.gz 2>> log
ls: noexist: No such file or directory
# ls
log file my.gz
复制代码