Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unset(1) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ksh(1)

set(1)

sh(1)

unset(1)                                                           unset(1)

NAME
     unset - delete shell variables or shell functions from the environment

SYNOPSIS
     unset name ...

DESCRIPTION
     The shell built-in unset removes the specified shell function or shell
     variable from the current environment.

     The built-in environment variables IFS, MAILCHECK, PATH, PS1, and PS2
     cannot be deleted using unset.

OPERANDS
     name Name of the shell variable or function to be removed from the
          current environment. Several blank-separated names may be speci-
          fied in a single command line.

LOCALE
     The LCMESSAGES environment variable governs the language in which
     message texts are displayed. If LCMESSAGES is undefined or is defined
     as the null string, it defaults to the value of LANG. If LANG is like-
     wise undefined or null, the system acts as if it were not internation-
     alized.

     The LCALL environment variable governs the entire locale. LCALL
     takes precedence over all the other environment variables which affect
     internationalization.

EXAMPLE
     Remove the shell function ll (for the Korn shell ksh you must specify
     unset -f ll):

     $ type ll
     ll is a function
     ll(){
     ls -al $* | pg
     }
     $ unset ll
     $ ll
     ll not found

NOTES
     Some differences in behavior may occur when using unset, depending on
     which shell is being used. The possible differences are not described
     specifically.

SEE ALSO
     ksh(1), set(1), sh(1).






Page 1                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026