Logo
  • Our Work
  • Process
  • About Us
  • Contact
  • Blog
« Back to blog
  • Viewed
    times
  • Favorited 0 times

Filed under

  • bash
  • linux
  • osx
November 17, 2009

Get those cheeky bash variables out of there

  • Edit
  • Delete
  • Autopost

Wanting to "unexport" a bash shell variable, after several minutes too long trying to find the man page for 'export', I finally found the hard way to do it;

 
export -n VAR_NAME 

or

 
unset VAR_NAME 

or


(Im just kidding about the latter)


Or if you're a smart cookie, you can just make a bash alias like this;

 
alias unexport='unset' 

Loading mentions
Retweet

Posted by Glenn Roberts Glenn Roberts

Comments (0)

Leave a comment...

Drop by and visit us:

Cape Town


153 Beach Road

Mouille Point, Cape Town

South Africa, 8005

  • Facebook
  • Follow us  on Twitter
  • Read our  Blog
Go to top

Back to top

© Siyelo 2008-2010, All rights reserved