Removing environment strings in C shell

j chapman flack chap at art-sy.detroit.mi.us
Fri May 10 02:22:20 AEST 1991


In the Bourne shell, the sequence of commands

     export KILLIT
     unset  KILLIT

will remove KILLIT from the shell's environment altogether.  The closest I
can seem to come in the C shell is

     setenv KILLIT ''

which defines KILLIT to be the null string, but does not remove it.  Am I
stuck with:

     exec sh -c 'export KILLIT;unset KILLIT;exec csh'

???
-- 
Chap Flack                         Their tanks will rust.  Our songs will last.
chap at art-sy.detroit.mi.us                                   -Mikos Theodorakis

Nothing I say represents Appropriate Roles for Technology unless I say it does.



More information about the Comp.unix.shell mailing list