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

25 lines
492 B
Markdown
Raw Normal View History

2018-09-06 23:15:29 +05:30
# set
> Display, set or unset values of shell attributes and positional parameters.
> More information: <https://manned.org/set>.
2018-09-06 23:15:29 +05:30
- 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}}`
2021-11-07 23:04:05 +02:00
- Set the shell to exit as soon as the first error is encountered (mostly used in scripts):
`set -e`