Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    Thank you @aliceinpalth. Do you mean bash belongs to GNU Readline library? What else is in GNU Readline library? Commented Feb 15, 2018 at 21:27
  • 7
    @Counter10000 In this sense, library isn't "a collection of tools" (I can see why you might think that) but "a lump of functionality that different tools can use". In this case, it's functions for working with a command line (including scrollback, line editing, and so on). Bash uses this for the shell prompt. On my system right in front of me, it's also used for bc (command line calculator), xfsprogs (filesystem admin programs), sqlite (a very small database system), lftp (a command-line ftp client), and more. Commented Feb 15, 2018 at 21:34
  • 1
    No problem @Counter10000! I'm glad to help. @mattdm answered your question very well. To learn more about how these programs utilize GNU Readline, there's a good write-up available here. Commented Feb 15, 2018 at 22:16
  • 1
    it seems that the last paragraph in your answer is at least inaccurate. I suppose there are some options, which can be set only in the inputrc file, so the two files are not completely "interchangeable". I tried to set the options from this answer in .bashrc and nothing happened. They only have effect being set in .inputrc Commented Nov 5, 2018 at 18:01