On 04/09/2015 12:49 AM, Paul Eggert wrote:
> Eric Blake wrote:
>> test ${var+y}
> 
> Hah!  Here's something that's one byte shorter:
> 
> ${var+:} [ ]
> 
> It may be clearer to write it more in the style you used:
> 
> [ ${var+y} ]
> 
> Both of these work with Solaris 10 /bin/sh.

But both become more difficult to express in autoconf, where [] also has
meaning to m4 quoting.

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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to