mirror of https://github.com/CrimsonTome/tldr.git
17 lines
325 B
Markdown
17 lines
325 B
Markdown
# unset
|
|
|
|
> Remove shell variables or functions.
|
|
> More information: <https://manned.org/unset>.
|
|
|
|
- Remove the variable `foo`, or if the variable doesn't exist, remove the function `foo`:
|
|
|
|
`unset {{foo}}`
|
|
|
|
- Remove the variables foo and bar:
|
|
|
|
`unset -v {{foo}} {{bar}}`
|
|
|
|
- Remove the function my_func:
|
|
|
|
`unset -f {{my_func}}`
|