2018-09-06 18:45:29 +01:00
|
|
|
# set
|
|
|
|
|
|
|
|
> Display, set or unset values of shell attributes and positional parameters.
|
|
|
|
|
|
|
|
- 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 21:04:05 +00:00
|
|
|
|
|
|
|
- Set the shell to exit as soon as the first error is encountered (mostly used in scripts):
|
|
|
|
|
|
|
|
`set -e`
|