<<< Date Index >>>     <<< Thread Index >>>

Re: when using `which` send errors to /dev/null



On 23May2007 20:22, Luciano Rocha <strange@xxxxxxxxxxxxx> wrote:
| if echo | md5sum &> /dev/null; then

"&>" is not portable. It's a bastard import into bash from csh:-(
Just go ">/dev/null 2>&1". Portable and just as readable.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Courage is not the absence of fear, but rather the judgment that something
else is more important than fear.       - Ambrose Redmoon