16 ms·
Bash uses .inputrc which configures readline, so if it's not actually using libreadline, it's emulating it pretty well.
by pyre 13y ago
Bash uses .inputrc which configures readline, so if it's not actually using libreadline, it's emulating it pretty well.
- jlgreco 13y agoIt looks like bash does use readline, though it's not dynamically linked with it (at least on my system). Kind of seems like bash and readline are intertwined more than I thought; the git repo for bash has a distribution of readline included in it.
- gcr 13y agoThat makes sense to me. The shell is fundamental to the system, and is so heavily intertwined with readline that it is very sensitive to ABI/API changes. Consider: if you upgrade your readline without upgrading bash, or vice versa, you lose the ability to fix the problem even in single user mode. Having Bash control its own readline usage seems like the safest option, though conceptually a bit more complex.