libtool-patches
[Top][All Lists]
Advanced

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

Re: MSVC: Find potential libs regardless of case.


From: Eric Blake
Subject: Re: MSVC: Find potential libs regardless of case.
Date: Mon, 14 Jun 2010 15:33:39 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4

On 06/14/2010 03:01 PM, Ralf Wildenhues wrote:
>> +eval `$EGREP '^(old_library)=' < $libdir/libbar.la`
> 
> This is probably lacking double-quoting around the `...` text.  Can you
> verify?

For that matter, it's not safe in the presence of signals, since some
shells end up doing "eval ''" if the `` is interrupted.  You want:

str=`$EGREP '^(old_library)=' < $libdir/libbar.la`
eval "$str"

or possibly even "$libdir" in the first line to be robust to spaces in
file names.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]