home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / shell / 5080 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  861 b 

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