It seems the Bash built-in help command help
does some really strange globbing:
help read
shows the documentation forread
,readarray
andreadonly
.help rea?
shows only the documentation forread
.help 'read$'
doesn't work.help read | sed '/^read[^:]\+/,$d'
is just silly.
Is there some more intuitive way to get only the read
output?
*
at the end if there is an exact match, (at least as of version version 4.3.42). In my version of bashhelp read
shows only the documentation forread
, buthelp read
would show the documentation forread
,readarray
, etc. – Elmar Zander Nov 27 '15 at 08:25