Files
tldr/pages.zh/common/unset.md

16 lines
288 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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