LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-26-2002, 08:12 AM   #1
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Rep: Reputation: 15
Question Setting the path


I am relatively new at this, but I was wondering if it would hurt anything in Linux to add the following to the beginning of the path:

./

?? It seems logical to me, but since its not there by default, I must not know something...

Thanks in advance!

 
Old 07-26-2002, 08:27 AM   #2
Config
Member
 
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Rep: Reputation: 30
Well, after having looked at it, it sounds like a cool idea! (Hate having to type ./blabla everytime) - my Slackware however has ./ already, actually, it has '.' (without the /) - May be you just overlooked it

[EDIT]
You meant editing the PATH variable, did you?
[EDIT]

Last edited by Config; 07-26-2002 at 08:28 AM.
 
Old 07-26-2002, 09:44 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well the reason why it's not added by default is because it can be disastrous at times. If someone places an executable called ls which does some destructive stuff and places it in the directory you are in. Then if you do a ls you will be running the bogus executable instead of getting a directory listing.

Ofcourse this does depend on the shell you are running. This won't work with bash but on ksh it will. And I'm sure there are a lot of other shells which have the same effect. So it's definetly not a wise thing to add it for the root user.
 
  


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
Setting the path powerlifter450 Linux - Software 18 07-05-2006 11:46 AM
Setting the path.... joel112 Slackware 5 08-28-2003 02:27 PM
setting PATH tda Linux - Newbie 1 04-29-2002 01:54 PM
Setting up PATH Sonny Linux - Newbie 4 01-28-2002 02:02 PM
PATH SETTING webboss Linux - Newbie 2 03-17-2001 06:29 PM

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

All times are GMT -5. The time now is 05:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration