1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/set.md
Managor 06dca5dfee
set: list all modes (#14081)
Update set.md
2024-10-09 19:36:11 +02:00

32 lines
553 B
Markdown

# set
> Toggle shell options or set the values of positional parameters.
> More information: <https://manned.org/set.1posix>.
- Display the names and values of shell variables:
`set`
- Export newly initialized variables to child processes:
`set -a`
- Write formatted messages to `stderr` when jobs finish:
`set -b`
- Write and edit text in the command-line with `vi`-like keybindings (e.g. `yy`):
`set -o {{vi}}`
- Return to default mode:
`set -o {{emacs}}`
- List all modes:
`set -o`
- Exit the shell when (some) commands fail:
`set -e`