unset: clarify example with no options (#4126)

This commit is contained in:
jn64 2020-07-06 04:50:40 +08:00 committed by GitHub
parent 8c86156d13
commit 222bc41873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,13 @@
> Remove shell variables or functions.
- Remove the variable `foo`, or if the variable doesn't exist, remove the function `foo`:
`unset {{foo}}`
- Remove the variables foo and bar:
`unset {{foo}} {{bar}}`
`unset -v {{foo}} {{bar}}`
- Remove the function my_func: