[Yum-devel] [PATCH] Make yum-cron code and config files prettier.
mattdm at mattdm.org
Fri Jul 29 12:15:39 UTC 2011
On Fri, Jul 29, 2011 at 09:06:32AM +0300, Ville Skyttä wrote:
> > In a couple of places, yes. And then I figured it was better to make them
> > all be that way to be consistent
> Speaking only wrt bash, if portability to other shells is not a concern,
> I personally prefer [[ over [. Off the top of my head, it has more
> features, it is faster, it has short-circuit evaluation, and one does
> not have to remember to protect/quote variables in tests like [ -z
> "$foo" ] e.g. when the value of $foo can contain spaces.
Yeeh. The key difference is that [[ is a language construct, while [ is a
_command_ (even though a built-in one) with weird syntax to make it _appear_
like a language construct.
Matthew Miller mattdm at mattdm.org <http://mattdm.org/>
More information about the Yum-devel