[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] [PATCH virt-viewer] Fail if neither vnc nor spice is detected



On 10/23/2012 02:03 AM, Christophe Fergeau wrote:

>>  
>> +if test "x$have_gtk_vnc" != "xyes" -a "x$have_gtk_spice" != "xyes"; then
> 
> IIRC
> if test "x$have_gtk_vnc" != "xyes" && test "x$have_gtk_spice" != "xyes"; then
> is better as it is more portable.

Correct - POSIX itself recommends against using 'test ... -a ...'

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

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]