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 [email protected] +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
