Journal stoolpigeon's Journal: Linux path question - Never Mind 4
I swear I looked at this forever and I just finally figured out it was simply a matter of a typo when I added the directory to my path in
*******************
I installed the Android SDK on one of my fedora machines. There are binaries I want to use that are in the location
So I added that to my path. When I check with echo $PATH I see it. When I try running one of the binaries there - android - I get "bash: android: comand not found..."
When I try "which android" it tells me,
$ which android
but if I type in from the prompt
Then it runs just fine. So what have I left out?
Weird (Score:2)
Your
command behaves like tcsh or csh but the error message says bash. Which shell is it?
Re: (Score:2)
I use bash.
Re: (Score:2)
It must just be the which binary used in android then. Mine returns nothing if the program is not found. tcsh has a builtin which command, and *csh uses "(/foo /bar /baz)" designation for paths, which is what led to my confusion.
Re: (Score:2)
It's whichever which is default with Fedora.
$ which --version
GNU which v2.20, Copyright (C) 1999 - 2008 Carlo Wood.
GNU which comes with ABSOLUTELY NO WARRANTY;
This program is free software; your freedom to use, change
and distribute this program is protected by the GPL.