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 [email protected] <http://mattdm.org/> _______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
