Name

unset

Synopsis

    unset [options]names

Erase definitions of functions or variables listed in names.

Options

-f

Unset functions names.

-n

Unset indirect variable (nameref) name, not the variable the nameref refers to. ksh93 only.

-v

Unset variables names (default). Not ksh88.

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.