[Yum-devel] [PATCH] Make yum-cron code and config files prettier.

Ville Skyttä ville.skytta at iki.fi
Fri Jul 29 06:06:32 UTC 2011

On 07/29/2011 12:59 AM, Matthew Miller wrote:
> On Thu, Jul 28, 2011 at 05:51:23PM -0400, James Antill wrote:
>>  Are you actually using any of the magic/fancy features of [[ vs. [ ?
>>  If not, it seems better to just use [ and not confuse everyone
>> (including me :).
> 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.

More information about the Yum-devel mailing list