libtool-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] libtool: minimise forks per invocation on cygwin and mingw.


From: Eric Blake
Subject: Re: [PATCH] libtool: minimise forks per invocation on cygwin and mingw.
Date: Thu, 08 Dec 2011 08:07:55 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0

On 12/08/2011 08:04 AM, Bob Friesenhahn wrote:
> On Thu, 8 Dec 2011, Gary V. Vaughan wrote:
>>>
>>> Instead of doing it this way, I'd almost rather see:
>>>
>>> if test "${BASH_VERSION+set}" = set; then
>>
>> Face palm!  Absolutely, that is far more sensible.  Assuming we decide
>> to push this patch, I'll do it that way and ditch the host check. 
>> Thanks!
> 
> Is the value of this variable inheritable by subordinate shells, or is
> it an internal shell variable which would never be exported to
> subordinate shells?

By default, bash sets up $BASH_VERSION as an internal variable, and not
exported.  It is unwise for users (or scripts) to export BASH_VERSION to
child processes.

-- 
Eric Blake   address@hidden    +1-919-301-3266
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]