On 4/25/21 11:41 AM, Oğuz wrote: > 25 Nisan 2021 Pazar tarihinde Eli Schwartz <eschwa...@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
OpenPGP_signature
Description: OpenPGP digital signature