Redirect not working correctly, 2> /dev/null becomes 2 > /dev/null and stderr doesn't get redirected
redirect, unix, xterm
Solution
That's Bourne shell syntax, and it doesn't work in c-shell.
The best you can do is
( command >stdout_file ) >&stderr_file
Where you get stdout to one file, and stderr to another. Redirecting just stderr is not possible.
Problem
I am hoping someone can help me figure out what setting I might need to overwrite. I am working on a Unix terminal server, running a Linux Xterm linux shell. Everytime I use a command like `grep "blah" 2> /dev/null` at the shell prompt, the command is run as `grep "blah" 2 > /dev/null` and needless to say the redirection fails. xterm version is X.Org 6.8.99.903(238) I can not update or install anything, this is a locked down production server. Thanks for any help and illumination on the topic, it is making my grep useless at high directory levels with recursion.