chap@art-sy.detroit.mi.us (j chapman flack) (05/09/91)
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@art-sy.detroit.mi.us -Mikos Theodorakis Nothing I say represents Appropriate Roles for Technology unless I say it does.
fitz@mml0.meche.rpi.edu (Brian Fitzgerald) (05/10/91)
How to unset a csh environment variable? unsetenv KILLIT (Better read your manual.)
rhartman@thestepchild.sgi.com (Robert Hartman) (05/11/91)
In article <9105091222.aa05720@art-sy.detroit.mi.us> chap@art-sy.detroit.mi.us (j chapman flack) writes: >In the Bourne shell, the sequence of commands > > export KILLIT > unset KILLIT > >will remove KILLIT from the shell's environment altogether. ... In the C shell you'd say: unsetenv KILLIT -r
dkeisen@leland.Stanford.EDU (Dave Eisen) (05/11/91)
In article <a.0ghj.@rpi.edu> fitz@mml0.meche.rpi.edu (Brian Fitzgerald) writes: >How to unset a csh environment variable? > >unsetenv KILLIT > This is system dependent. As far as I know, there is no way to it in SCO Xenix. -- Dave Eisen dkeisen@leland.Stanford.EDU 1101 San Antonio Raod, Suite 102 (Gang-of-Four is being taken off the net) Mountain View, CA 94043 (415) 967-5644
ping@cubmol.bio.columbia.edu (Shiping Zhang) (05/11/91)
In article <9105091222.aa05720@art-sy.detroit.mi.us> chap@art-sy.detroit.mi.us (j chapman flack) writes:
<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
What about
unsetenv KILLIT
?
-ping
tomb@marque.mu.edu (Tom Baas) (05/12/91)
In article <1991May11.003434.20171@leland.Stanford.EDU> dkeisen@leland.Stanford.EDU (Dave Eisen) writes: >This is system dependent. As far as I know, there is no way to it >in SCO Xenix. > on SCO XENIX you CAN unset most variables with the unset command! :) > >-- >Dave Eisen dkeisen@leland.Stanford.EDU >1101 San Antonio Raod, Suite 102 (Gang-of-Four is being taken off the net) >Mountain View, CA 94043 >(415) 967-5644 -- I can accept e-mail and Voice-mail at: tbaas!tom or tom@tbaas or ....marque!tomb or tomb@marque or Voice at: 1-414-377-4038