[PATCH modular 2/2] Verify existence of command specified by --cmd.
Alan Coopersmith
alan.coopersmith at oracle.com
Sun Oct 24 11:10:38 PDT 2010
Trevor Woerner wrote:
> On Sat, Oct 23, 2010 at 8:03 PM, Gaetan Nadon <memsize at videotron.ca> 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- alan.coopersmith at oracle.com
Oracle Solaris Platform Engineering: X Window System
More information about the xorg-devel
mailing list