[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: '.' in path, summary



On Fri, 2 Jul 1999, BGanesh wrote:

+ 	Thx to both Manas Garg and Binand Raj for the clarifications. here is a
+ summary and couple of questions :
+ 
+ putting '.' in your path is evil. 
+ If it occurs at the beginning of $PATH, it is an accident waiting to
+ happen.
+ 
+ if it occurs in the end, there is a lesser probability of damage, but
+ equally severe.
+ 

Even if there occurs a '.' in $PATH, the damage can be traded with some 
pain.

0.  Type in the full path of the executables. i.e. instead of doing 'ls',
    do 'bin/ls' or whatever (pointed out earlier by Thaths).

1.  To save all this typing, make aliases of all the frequently used
    executables. Also alias common typing errors like ks, sl, ci, etc to
    echo or false or whatever u like.

2.  /tmp (or for that matter, all world writable dirs) is like a public
    lavatory :) So instead of plunging directly into it to clean, first
    watch its floor else you may land into a mess.

All this trouble, if you are hell bent on putting '.' in $PATH.

Sharad.


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/

------------------------------