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>
This commit is contained in:
Alejandro Cervera
2024-01-07 17:38:34 -05:00
committed by GitHub
parent 8f4a2aeb27
commit 0385654986
10 changed files with 48 additions and 51 deletions

View File

@@ -1,20 +1,20 @@
# export
> Command to mark shell variables in the current environment to be exported with any newly forked child processes.
> Export shell variables to child processes.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-export>.
- Set a new environment variable:
- Set an environment variable:
`export {{VARIABLE}}={{value}}`
- Remove an environment variable:
- Unset an environment variable:
`export -n {{VARIABLE}}`
- Mark a shell function for export:
- Export a function to child processes:
`export -f {{FUNCTION_NAME}}`
- Append something to the PATH variable:
- Append a pathname to the environment variable `PATH`:
`export PATH=$PATH:{{path/to/append}}`