>>& 在 tcsh 脚本中是什么意思,它如何转换为 bash?

What does >>& mean in a tcsh script and how does it translate to bash?

我正在将 tcsh 脚本转换为 bash,但遇到了麻烦,因为我不完全确定 >>& 的作用

wget --output-document=/dev/null "http://somewebsite.org" >>& /root/wget.log

我确实阅读了手册页 http://linux.die.net/man/1/tcsh 但不确定 "route the diagnostic" 是什么意思,可能是标准错误...

所以,为了绝对确定,这是否与以下操作相同:

wget --output-document=/dev/null "http://somewebsite.org" 2>>&1 /root/wget.log

在 bash 脚本中?

它将 stdout 和 stderr 附加到文件中,因此它等同于:

wget --output-document=/dev/null "http://somewebsite.org" >> /root/wget.log 2>&1