Trevor Woerner <[email protected]> (23/10/2010):
> > 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.

It's not, it's just a redirection. I think what you could have in mind
is &>$n (used as a shortcut for >$n 2>&1). When in doubt, search for
“opengroup shell” and your favourite search engine will lead you to
what POSIX says.

That said, back to your original patch, you could just write:
| if which $arguments; then […]; fi

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
[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