February 2001
Beginner to intermediate
448 pages
9h 2m
English
Official Description
The variables or functions given by the list of names are unassigned.
Syntax
unset [-fv] name ...
Options
-f names refer to functions.
-v names refer to variables.
Oddities
Read-only variables cannot be unset.
Example
$ readonly # Display read-only variables x=17 $ $ unset x # Attempt to unset a read-only variable /bin/ksh: unset: x: is read only $ $ y=23 # Create a normal shell variable $ $ print $y 23 $ $ unset y # Remove it with unset $ $ print $y $
Read now
Unlock full access