Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

35
tldr/rbash Normal file
View File

@@ -0,0 +1,35 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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 `histexpand` for history expansion.
> More information: <https://www.gnu.org/software/bash/manual/html_node/The-Restricted-Shell>.
- Start an interactive shell session:
`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`