home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!auvm!jw1675a
- Organization: The American University - University Computing Center
- Date: Tue, 15 Dec 1992 16:25:32 EST
- From: James D. Watson <JW1675A@auvm.american.edu>
- Message-ID: <92350.162533JW1675A@auvm.american.edu>
- Newsgroups: comp.unix.shell
- Subject: "unset" variables under ultrix bourne shell
- Lines: 10
-
- Hi! I'm writing UNIX administration scripts and some will be
- sourced. I don't want to leave any trace of them after they exit. On a
- Sun (BTW, all my scripts are /bin/sh) I can unset a previously defined
- variable with "unset VARNAME". How can I do this on a DEC/5000 (again
- using /bin/sh)? I know I can "VARNAME=''" but if I run "set" from the
- command line, I'll see "VARNAME=". (On the Sun, unset gets cleans the var
- out of the environment.)
-
- Thanks in advance. (E-mail and posted answers are fine.)
- Jim
-