2018-09-06 23:15:29 +05:30
|
|
|
# set
|
|
|
|
|
common/*: update pages of some POSIX special built-in utilities (#11956)
* exec, export, readonly, set, shift, trap: replace command descriptions
* exec, exit, export, readonly, set, shift, trap, exec, export: replace example descriptions
* exec, trap: replace "More information" links
* trap: remove prefix "SIG" from some command arguments
Although POSIX allows implementations to specify signal names without
the prefix "SIG", I will choose the most portable form.
* export: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* set: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* export: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* export: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* exec: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* exit: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* export: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* readonly: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* set: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* shift: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* trap: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* exec: explain environment of child process
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
---------
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-01-07 17:38:34 -05:00
|
|
|
> Toggle shell options or set the values of positional parameters.
|
|
|
|
> More information: <https://manned.org/set.1posix>.
|
2018-09-06 23:15:29 +05:30
|
|
|
|
|
|
|
- Display the names and values of shell variables:
|
|
|
|
|
|
|
|
`set`
|
|
|
|
|
common/*: update pages of some POSIX special built-in utilities (#11956)
* exec, export, readonly, set, shift, trap: replace command descriptions
* exec, exit, export, readonly, set, shift, trap, exec, export: replace example descriptions
* exec, trap: replace "More information" links
* trap: remove prefix "SIG" from some command arguments
Although POSIX allows implementations to specify signal names without
the prefix "SIG", I will choose the most portable form.
* export: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* set: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* export: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* export: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* exec: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* exit: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* export: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* readonly: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* set: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* shift: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* trap: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* exec: explain environment of child process
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
---------
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-01-07 17:38:34 -05:00
|
|
|
- Export newly initialized variables to child processes:
|
2018-09-06 23:15:29 +05:30
|
|
|
|
|
|
|
`set -a`
|
|
|
|
|
common/*: update pages of some POSIX special built-in utilities (#11956)
* exec, export, readonly, set, shift, trap: replace command descriptions
* exec, exit, export, readonly, set, shift, trap, exec, export: replace example descriptions
* exec, trap: replace "More information" links
* trap: remove prefix "SIG" from some command arguments
Although POSIX allows implementations to specify signal names without
the prefix "SIG", I will choose the most portable form.
* export: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* set: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* export: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* export: replace term
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* exec: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* exit: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* export: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* readonly: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* set: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* shift: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* trap: replace Open Group link
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
* exec: explain environment of child process
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
---------
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
2024-01-07 17:38:34 -05:00
|
|
|
- Write formatted messages to `stderr` when jobs finish:
|
2018-09-06 23:15:29 +05:30
|
|
|
|
|
|
|
`set -b`
|
|
|
|
|
2024-06-16 22:46:42 +02:00
|
|
|
- Write and edit text in the command-line with `vi`-like keybindings (e.g. `yy`):
|
2018-09-06 23:15:29 +05:30
|
|
|
|
|
|
|
`set -o {{vi}}`
|
2021-11-07 23:04:05 +02:00
|
|
|
|
2024-10-08 19:23:42 +03:00
|
|
|
- Return to default mode:
|
|
|
|
|
|
|
|
`set -o {{emacs}}`
|
|
|
|
|
2024-10-09 20:36:11 +03:00
|
|
|
- List all modes:
|
|
|
|
|
|
|
|
`set -o`
|
|
|
|
|
2025-03-07 13:45:30 +02:00
|
|
|
- Exit the shell when (some) command fails:
|
2021-11-07 23:04:05 +02:00
|
|
|
|
|
|
|
`set -e`
|
2024-12-20 20:42:48 +02:00
|
|
|
|
|
|
|
- Reset all shell parameters and assign new ones:
|
|
|
|
|
2025-03-07 13:45:30 +02:00
|
|
|
`set -- {{argument1 argument2 ...}}`
|