Computing.Net > Forums > Linux > Unsetting a variable

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Unsetting a variable

Reply to Message Icon

Name: pestario
Date: September 25, 2006 at 08:32:10 Pacific
OS: Redhat
CPU/Ram: AMD Athlon 2600+/1 GB
Comment:

Hi folks,

In my .bashrc file, I set and export a variable. However, I found out that setting this variable is causing issues with an application (vim, in case you were wondering). Is there any way to unset the variable globally (without rebooting my machine)? I can unset it on a terminal using unset and then invoke vim and it works fine. But, when I click on the icon, it always gives me problems.

Thanks for your help!



Sponsored Link
Ads by Google

Response Number 1
Name: nails
Date: September 25, 2006 at 10:44:15 Pacific
Reply:

Have you ever considered using environmental variable EXINIT to modify your vi environment?

For example, this unsets showmode:

export EXINIT='set noshowmode'


0

Response Number 2
Name: pestario
Date: September 26, 2006 at 06:07:09 Pacific
Reply:

Hi. Thanks for your reply. I was not familiar with the EXINIT variable, so thanks for the education!

I was able to resolve the issue by restarting X. It would be nice to know how to unset a variable without restarting X, though.

Cheers.


0

Response Number 3
Name: Dlonra
Date: September 28, 2006 at 14:31:43 Pacific
Reply:

XX=496
echo $XX
496
unset XX
echo $XX
#gone


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Unsetting a variable

How to md5sum a variable content www.computing.net/answers/linux/how-to-md5sum-a-variable-content/14153.html

Test a variable for asterisk www.computing.net/answers/linux/test-a-variable-for-asterisk/14172.html

reset a variable www.computing.net/answers/linux/reset-a-variable/20084.html