On 06/01/2012 03:20 AM, Adam Dinwoodie wrote:
> Buchbinder, Barry wrote:
>> You might try changing
>>     [[ condition ]]
>> to
>>     [ condition ]
>> Perhaps single brackets use memory differently than double brackets.
> 
> They do: [[ condition ]] is interpreted by the shell; [ condition ] forks to
> call /usr/bin/[.exe.

No, it doesn't.  Bash has a built-in [ rather than forking, since
running tests is so common.

-- 
Eric Blake   ebl...@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to