From 222bc41873be0a8c131ca420bc51ff79d313d620 Mon Sep 17 00:00:00 2001 From: jn64 <23169302+jn64@users.noreply.github.com> Date: Mon, 6 Jul 2020 04:50:40 +0800 Subject: [PATCH] unset: clarify example with no options (#4126) --- pages/linux/unset.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/linux/unset.md b/pages/linux/unset.md index 4de7038b2..90d0d2c2e 100644 --- a/pages/linux/unset.md +++ b/pages/linux/unset.md @@ -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: