1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-02 05:55:23 +02:00
tldr/pages/common/set.md
Alejandro Cervera ced5cb22f6
common/*: update pages of POSIX special Built-In utilities (#11858)
* eval, exec, exit, export, readonly, set, shift, trap: use Open Group links

* exec, export, trap: split Linux and POSIX
2023-12-29 18:37:58 +05:30

24 lines
547 B
Markdown

# set
> Display, set or unset values of shell attributes and positional parameters.
> More information: <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#set>.
- Display the names and values of shell variables:
`set`
- Mark variables that are modified or created for export:
`set -a`
- Notify of job termination immediately:
`set -b`
- Set various options, e.g. enable `vi` style line editing:
`set -o {{vi}}`
- Set the shell to exit as soon as the first error is encountered (mostly used in scripts):
`set -e`