On 7/31/23 12:59 PM, Wiley Young wrote:
Hi, Regarding the "Invoking Bash" page, https://www.gnu.org/software/bash/manual/html_node/Invoking-Bash.html
Thanks for the report.
It might be more consistent and therefore perhaps more clear for all of the newbies out there if the description of "--restricted" also began with "Equivalent to -r," as the very next description does. "--restricted
This is reasonable.
Also, a few lines later, there's the phrase, "There are several single-character options that may be supplied at invocation which are not available with the set builtin." Within that list there's the item, "-r Make the shell a restricted shell (see The Restricted Shell <https://www.gnu.org/software/bash/manual/html_node/The-Restricted-Shell.html> )." However, restricted mode is listed on the "Set Builtin" page:
Yes, I keep meaning to take it out of the set builtin; no one else, including POSIX, has it there, and it doesn't really make much sense. But the restricted shell is so little-used I never get around to it. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/