tldr/pages/linux/unset.md

16 lines
277 B
Markdown
Raw Normal View History

2018-12-01 17:55:20 +00:00
# unset
> Remove shell variables or functions.
- Remove the variable `foo`, or if the variable doesn't exist, remove the function `foo`:
`unset {{foo}}`
2018-12-01 17:55:20 +00:00
- Remove the variables foo and bar:
`unset -v {{foo}} {{bar}}`
2018-12-01 17:55:20 +00:00
- Remove the function my_func:
`unset -f {{my_func}}`