Red Hat Bugzilla – Bug 852469
bash - Inconsistency between man page and help
Last modified: 2016-04-18 06:21:26 EDT
Description of problem:
In bash help message, options --protected and --debug are mentioned (and valid), but they are the only options not on man page. Moreover, option -l is on man page, but not mentioned in help (shell options part).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Check man page
2. Check --help option
Inconsistent man page/help
Consistent man page/help
(In reply to comment #0)
Thanks for the report.
> Description of problem:
> In bash help message, options --protected and --debug are mentioned (and
> valid), but they are the only options not on man page. Moreover, option -l
> is on man page, but not mentioned in help (shell options part).
Long options are just printed out in regards of which all options are possible, in other words, the text is generated. Probably it makes sense to add options to man page and info doc.
Short options are stored as a string, I will add missing option.
--debug has no effect, it is there probably for some compatibility. Asked upstream.
--protected will force that there will not be performed process nor command substitutions.
adding -l short option will be easy to fix.
-l is already fixed in git repository and will be fixed in next release.
--protected is not usable, since it depends on compile time option WORDEXP_OPTION and this option is not turned on in Fedora nor RHEL. I have posted a patch upstream.
Upstream already fixed it and it will occur in next release of bash.