diff --git a/pages/common/bash.md b/pages/common/bash.md index 8b4d7425107698..d817f7a0eca2a3 100644 --- a/pages/common/bash.md +++ b/pages/common/bash.md @@ -34,4 +34,4 @@ - Start a [r]estricted shell session: -`bash -r` +`bash {{[-r|--restricted]}}` diff --git a/pages/common/rbash.md b/pages/common/rbash.md index 079fb4d5d82573..325e3a56f99eb8 100644 --- a/pages/common/rbash.md +++ b/pages/common/rbash.md @@ -1,30 +1,7 @@ # rbash -> Restricted Bash shell, equivalent to `bash --restricted`. -> Does not permit changing the working directory, redirecting command output, or modifying environment variables, among other things. -> See also: `!` and `^` for history expansion. -> More information: . +> This command is an alias of `bash --restricted`. -- Start an interactive shell session: +- View documentation for the original command: -`rbash` - -- Execute a command and then exit: - -`rbash -c "{{command}}"` - -- Execute a script: - -`rbash {{path/to/script.sh}}` - -- Execute a script, printing each command before executing it: - -`rbash -x {{path/to/script.sh}}` - -- Execute commands from a script, stopping at the first error: - -`rbash -e {{path/to/script.sh}}` - -- Read and execute commands from `stdin`: - -`rbash -s` +`tldr bash`