Wednesday, May 8, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 2855  / 3 Years ago, sun, july 18, 2021, 6:39:10

I try to display the help pages of unset command line , i get as a result the following output:



No manual entry for unset



I see this issue since they are similar , however , it cannot be solution for this issue .
Indeed , that issue has been resolved by installing some packages using this cmd :


sudo apt-get install manpages-posix manpages-posix-dev

So , i try to do the same thing ;except modifying posix by unset , so i do this :


sudo apt-get install manpages-unset

The result was :



Unable to locate package manpages-unset



The explicit question is :


How to display manual of unset


More From » command-line

 Answers
6

As set and unset are shell builtins you need to use the help command to get their detailed help:



$ help unset
unset: unset [-f] [-v] [-n] [name ...]
Unset values and attributes of shell variables and functions.

For each NAME, remove the corresponding variable or function.

Options:
-f treat each NAME as a shell function
-v treat each NAME as a shell variable
-n treat each NAME as a name reference and unset the variable itself
rather than the variable it references

Without options, unset first tries to unset a variable, and if that fails,
tries to unset a function.

Some variables cannot be unset; also see `readonly'.

Exit Status:
Returns success unless an invalid option is given or a NAME is read-only.

[#24346] Monday, July 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tisglitter

Total Points: 307
Total Questions: 103
Total Answers: 119

Location: Bosnia and Herzegovina
Member since Thu, Jun 24, 2021
3 Years ago
tisglitter questions
Sun, Jan 9, 22, 16:18, 2 Years ago
Wed, Jun 1, 22, 18:03, 2 Years ago
Fri, Dec 10, 21, 14:31, 2 Years ago
;