LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-07-2005, 04:57 PM   #1
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
This might sound strange but... $PATH


Hello fellow linuxoers,


I wonder if this can be easily acomplish.

Sometimes I need to remove something that is declare in the $PATH but just for that session, but how can I acomplish that without having to declare a whole new path?

Is there a way to use export PATH with some option to remove something specific?
 
Old 11-07-2005, 05:04 PM   #2
pritchardtom
Member
 
Registered: Oct 2005
Location: Swansea, UK
Distribution: Slackware // Mandriva
Posts: 32

Rep: Reputation: 15
I believe that as long as you do not explicilty set the path variable in the .bashrc file the export command will only last for the current session. Once you exit the shell and start it back up it will read the path variable in the .bashrc or what ever file it is stored in.

To be safe you could safe you current $PATH to another variable and then set it back at the end of the session, or simple copy the $PATH to a text file so if anything goes wrong, you still have the original.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange looking path Gins Linux - General 2 11-19-2004 04:37 PM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 05:16 PM
Sound Issues with XMMS/ mpg123 strange (strange noises) thegreatbob Linux - Software 0 06-25-2004 03:18 PM
Strange path... Bjornkri Linux - Newbie 2 02-17-2003 08:28 AM
help with strange path problem please... scottyman Linux - Software 0 01-31-2003 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration