Bug 2369713 - Fedora should provide the bash loadable builtins directory /usr/lib/bash/ but it does not
Summary: Fedora should provide the bash loadable builtins directory /usr/lib/bash/ but...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Siteshwar Vashisht
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-02 07:59 UTC by Duncan Roe
Modified: 2025-06-09 00:58 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Duncan Roe 2025-06-02 07:59:21 UTC
Loadable builtins are quite mature at bash version 5.2.37(1)-release (x86_64-redhat-linux-gnu). But Fedora ships without the /usr/lib/bash/ directory where bash's make install puts the binaries.
Although the sources reside in the examples/loadables/ directory, the distributed ones are supported.
Debian & Ubuntu provide the loadable builtins in a package called "bash-builtins".
Slackware comes with loadable builtins installed as part of bash.
I suggest Fedora takes one of the above approaches.
Historical Note: Loadable builtins first appeared in bash 2.0. Binaries (what Fedora still lacks) appeared in bash 4.4. 

Reproducible: Always

Steps to Reproduce:
1. $  enable -f finfo finfo
2.
3.
Actual Results:
-bash: enable: cannot open shared object finfo: finfo: cannot open shared object file: No such file or directory
$

Expected Results:
$

Additional Information:
`help finfo` should now give you:

finfo: finfo [-acdgiflmnopsuACGMPU] file [file...]
    Display information about file attributes.

(and lots more)

Comment 1 Duncan Roe 2025-06-09 00:58:20 UTC
It turns out that bash creates the binary loadable builtins during `make install`.


Note You need to log in before you can comment on or make changes to this bug.