PATH priority over actual directory?

Asked by kindofabuzz

i made a directory in my /usr/lib to contain a nightly build of firefox. wehn i cd to that dir and type firefox to run it, it runs the default firefox in my path. i have to actaully make a link with the dir's i want to run the right one. did that make any sense?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
kindofabuzz
Solved:
Last query:
Last reply:

This question was originally filed as bug #224536.

Revision history for this message
Artem Popov (artfwo) said :
#1

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs .

It's the default behaviour for UNIX systems to exclude current directory from PATH (for security reasons). In order to run files from the current directory you either have to type something like "./firefox" (starting with ./) or specify the full path for the executable.

Revision history for this message
kindofabuzz (kindofabuzz) said :
#2

oh ok didn't think of that.