On Sunday, Jan 30, 2005, at 07:08 US/Central, Tom Chapin wrote:
And I always put my current directory in my $PATH, but always at the end. (If I
am so stupid as to leave my own directories open for others to write into,
or to run unknown commands in someone else's directories, then I deserve
what I get...) Typically when I am working at some company, I always
rewrite my $PATH from scratch anyway, since the sysadmins too often give us
an /etc/profile that puts our current directory in front, and loads up
$PATH with garbage, half of which no longer exist and many of the rest I
will never use, so I hardcode what I want in my .profile.

I've seen many a flame war about whether or not it is a good idea to put "." in the PATH. My personal preference is to not, just because I'm a bit more conservative. Others, like Tom, like to put "." in the PATH. It's whatever you like, just be sure you understand the implications.


Also, I prefer to put my personal scripts in ~/bin and put ~/bin at the beginning of the PATH, like so:

  export PATH=~/bin:$PATH

My reasoning is that, if I've created a script with the same name as an existing program, then it's probably because I want behaviour that differs from the existing program.

In the end, it's all just personal preference. And unix/linux/BSD allows you to customize your work environment to suit your personal preferences.

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource.  Distribute FLOSS for
Windows, Linux, *BSD, and MacOS X with BitTorrent

_______________________________________________
CWE-LUG mailing list
http://www.cwelug.org/ [email protected]
http://lists.firepipe.net/listinfo/cwe-lug

Reply via email to