1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/common/unset.md

17 lines
288 B
Markdown
Raw Permalink Normal View History

# unset
> 删除 Shell 变量或函数。
> 更多信息:<https://manned.org/unset>.
- 删除变量 `foo`,如果该变量不存在则删除函数 `foo`
`unset {{foo}}`
- 删除变量 foo 和 bar:
`unset -v {{foo}} {{bar}}`
- 删除函数 my_func:
`unset -f {{my_func}}`