Trevor Woerner wrote:
> On Sat, Oct 23, 2010 at 8:03 PM, Gaetan Nadon <[email protected]> wrote:
>> On Fri, 2010-10-22 at 16:08 -0400, Trevor Woerner wrote:
>>
>> +       which $cmd1 > /dev/null 2> /dev/null
>>
>> I am not UNIX head, but it seems '$cmd1 > /dev/null 2>&1' would be a more
>> popular way to write this.
> 
> Ha ha! Yes, that's how my fingers would more naturally phrase such a
> thing. But I *believe* that is a bash-ism.

As far as I know 2>&1 goes back to the original Bourne shell, and is portable
enough for our purposes.

-- 
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to