bug-bash
[Top][All Lists]
Advanced

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

Re: How to use bash loadables in a portable manner?


From: Eli Schwartz
Subject: Re: How to use bash loadables in a portable manner?
Date: Sun, 25 Apr 2021 11:44:59 -0400

On 4/25/21 11:41 AM, Oğuz wrote:
> 25 Nisan 2021 Pazar tarihinde Eli Schwartz <eschwartz@archlinux.org> yazdı:
> 
>> The bash loadables available in the standard make install seem pretty
>> useful and people might actually want to use them in scripts. But
>> scripts cannot easily know *where* they are located.
>>
>>
>> In the bash manpage is documented:
>>
>> BASH_LOADABLES_PATH
>>     A colon-separated list of directories in which the shell looks for
>> dynamically loadable builtins specified by the enable command.
>>
>> I suppose that means bash would like to support discovery of these.
>> Unfortunately, it's not very useful to find the builtin ones, since one
>> would need to know which paths the current bash binary was configured
>> with in order to manually set this variable in the script.
>>
>> Maybe it would be good to have this variable default to the path
>> containing the shipped loadables? Is there any particular reason this is
>> not already the case.
> 
> 
> This commit to the development branch adds a default value for
> `BASH_LOADABLES_PATH':
> 
> https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=fb4ddc2d2b66b776e013ddadfce86270a71c323a
> 
> So in the next version you will be able to use them in a portable manner.
Oh hmm, thanks. Did not notice this.

-- 
Eli Schwartz
Bug Wrangler and Trusted User

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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