Click to See Complete Forum and Search --> : Export command and variables


Bladez
04-18-2003, 04:02 PM
OK so I was playing with *****X and it says to set certain variables, (like my IRC nick) you can go:
export IRCNICK="<insert nickname here>

Well that is all fine and dandy, but where is that information stored? Say I screwed it up and want to eliminate something I out in there? How do I delete stuff?

I can't see any of this in my .bash_profile or .bashrc... just curious, how to either manually edit a file (which one then?) or if there an opposite command of export that will let me remove things.

Thanks! :)

chrism01
04-18-2003, 04:52 PM
Normally, you would put something like that in one of the 2 files you mentioned, but any process that runs a shell script can do the same thing.
The variable will only be set for the current shell and any sub-shell from there.
If you wanted to unset it, you would set it equal to null ie "", or stop the shell and remove the definition.
If you just set the var without the export keyword, it will only affect/be avail in the current shell.