LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to remove a variable (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-remove-a-variable-666062/)

Canis Polaris 08-28-2008 09:49 AM

How to remove a variable
 
I goofed. I thought the command to add a directory to my PATH was
"set PATH=current_path:new_dir".
This resulted in adding a variable "_".

Unset didn't remove it. Unset only changed it.

I have successfully changed the path as desired, but how can I remove that goofy looking "_" variable?

Thanks,

Gregory

trickykid 08-28-2008 09:52 AM

Just do another set PATH= without the "_" and it should update it.

Canis Polaris 08-28-2008 10:39 AM

Never mind. Apparently all of my systems have a variable "_". Following is the last five lines from running the set command:

TERM=xterm
UID=0
USER=root
USERNAME=root
_=PATH

And from another system:

TERM=xterm
UID=0
USER=oracle
VORTEX_HOME=/opt/acucorp/800
_=/etc/bashrc

Thanks again,

Gregory


All times are GMT -5. The time now is 09:52 PM.