[Top][All Lists]

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

How to use bash loadables in a portable manner?

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

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:

    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.

Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

reply via email to

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