The info
command was removed starting with macOS Ventura. As already stated in the OP's answer, the info
command is available via Homebrew's texinfo formulae. However, if you are using the version of bash
(which currently is 3.2.57(1)-release
) that came with Ventura or Sonoma and have not upgraded bash
, then you will need to install the bash.info
file that Apple has published on GitHub. This file has not changed since at least Monterey (macOS 12.5). Here is the Sonoma (macOS 14.4) source code website where you can download the bash.info
file. You will need to move this download to /usr/local/share/info/bash.info
by entering the commands given below.
xattr -c ~/Downloads/bash.info
chmod a-w ~/Downloads/bash.info
mv ~/Downloads/bash.info /usr/local/share/info
Below is the output from the ls -lO@e /usr/local/share/info/bash.info
from my Mac. This was after moving the file.
-r--r--r-- 1 davidanderson staff - 408792 Apr 12 08:17 /usr/local/share/info/bash.info
An alternative to using the info
command would be to open the bash
man page. An example of doing this for various commands is given in this answer.
The latest available Homebrew version of bash
can be found at here. (Currently, this is version 5.2.26(1)-release
.) Using this formulae will require replacing any existing /usr/local/share/info/bash.info
with a symbolic link.
After installing this Homebrew version of bash
, an alternative to using the info
command would be to open the bash
man page as a local web document. The command is given below.
open /usr/local/Cellar/bash/5.2.26/share/doc/bash/bash.html
Or, use the following link.
file:///usr/local/Cellar/bash/5.2.26/share/doc/bash/bash.html
Another alternative would be to open the Bash Reference Manual as a local web document. The command is given below.
open /usr/local/Cellar/bash/5.2.26/share/doc/bash/bashref.html
Or, use the following link
file:///usr/local/Cellar/bash/5.2.26/share/doc/bash/bashref.html
Appendix
For those who are new to the info
command, below is a partial list of navigation keys.
Key |
Action |
Down arrow |
To move to the next line |
Up arrow |
To move to the previous line |
Spacebar |
To move to the next page |
Del |
To move to the previous page |
] |
To move to the next node |
[ |
To move to the previous node |
t |
To move to the top node of the document |
s |
To search a string in the forward direction |
{ |
To search the previous occurrence of the string |
} |
To search the next occurrence of the string |
q |
To quit from the document |
References
info
still exists on Catalina