argument precedence, output redirection

2010-12-03 Thread Payam Poursaied
Hi all, I'm not sure this is a bug or please let me know the concept: What is the difference between: ls -R /etc/ 2>&1 1>/dev/null and ls -R /etc/ 1>/dev/null 2>&1 the second one redirect everything to /dev/null but the first one, still prints errors (run as a non root user would unveil the prob

argument precedence, output redirection

2010-12-03 Thread Payam Poursaied
Hi all, I'm not sure this is a bug or please let me know the concept: What is the difference between: ls -R /etc/ 2>&1 1>/dev/null and ls -R /etc/ 1>/dev/null 2>&1 the second one redirect everything to /dev/null but the first one, still prints errors (run as a non root user would unveil the pro