Tagged Questions
8
votes
4answers
240 views
Why does the “which” command give duplicate results?
which -a ruby gives me
/usr/ruby
/usr/ruby
/usr/ruby
It gives the same path three times. Why does this happen?
5
votes
3answers
262 views
My `which` command may be wrong (sometimes)?
I've compiled the last emacs version from the source code (v24.2) because the version installed on my machine is (quite) old for me (v21.3). I've done the usual:
$configure --prefix=$HOME
make
make ...
3
votes
2answers
3k views
How to add home directory path to be discovered by Unix which command?
I have installed node.js at custom location and added the location to the $PATH in .profile file.
Hoons-MacBook-Air:npm Eonil$ node --version
v0.6.2
Hoons-MacBook-Air:npm Eonil$ which node
...
1
vote
3answers
407 views
How to determine which executable on my path will be run?
I run which and get the following,
brendan$ which python
/opt/local/bin/python
brendan$ which -a python
/opt/local/bin/python
/usr/bin/python
brendan$ ls -l /opt/local/bin/python
lrwxr-xr-x ...
4
votes
2answers
369 views
What does '//' mean in return from `which`
I have an executable script test under the full path /home/sawa/foo/bar/test. The directory /home/sawa/foo/bar is within $PATH, and has priority over the default ones including /usr/bin. When I do
...