From cc37e9dc0acabea7988aed2c5589d2882129afa5 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 20 Dec 2025 07:18:50 +0200 Subject: [PATCH 1/2] Update rbash.md --- pages/common/rbash.md | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) 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` From 28b739d5ffec203eb680e79d785986b4faa7caf7 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 20 Dec 2025 07:19:40 +0200 Subject: [PATCH 2/2] Update bash.md --- pages/common/bash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]}}`