It is currently Mon, 08 Aug 2022 20:15:20 GMT



 
Author Message
 "unset" variables under ultrix bourne shell
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



 Sun, 04 Jun 1995 00:25:32 GMT   
 
   [ 1 post ] 

Similar Threads

1. Technique for detecting unset variables in Bourne shells

2. Bourne shell: "no stack space" problem

3. Bourne shell "trip test"?

4. Bourne shell "read line"

5. Bourne shell equivilant of "source"

6. Q about Bourne shell "read" command

7. Bourne Shell Script to "C" Converter

8. detecting difference between unset variable and variable whose value is null in Korn Shell

9. Utmpx: "unset watch"


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software