CSH: "cmd >& file" or "cmd </dev/null >& file"
I just started a new job where they use alot of CSH scripts, and had a question about how to send both standard output and standard error to a file.
My Unix in a nutshell book says to use this method:
cmd >& file
This is the method that I am familar with.
However, at my new work place, the 'cmd >& file' isn't used at all, and instead all of the scripts use the following method:
cmd < /dev/null >& file
cmd in this case does NOT take anything from standard input. Why would someone do this? It seems pointless.
My coworkers think I am crazy to use the first method, but nobody can explain why the second method is better (They're crazy!)
Can anyone explain the difference between these two methods?
Thanks for your help,