[Tutor] Confusion with $PATH

Kent Johnson kent37 at tds.net
Fri Sep 25 19:48:06 CEST 2009


> On Fri, Sep 25, 2009 at 11:32 AM, David Eric <ciik13 at gmail.com> wrote:
>>
>> ok this is really weird . . .
>> i tried running the helloworld again, and it doesnt work :/
>>
>> DTm:~ davidteboul$ echo $PATH
>> PATH$/Library/Frameworks/
>>
>> Python.framework/Versions/3.1/bin:/Library/Frameworks/Python.framework/Versions/3.0/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin/Users/davidteboul/bin/pythonStuff

You are missing a colon between /usr/X11/bin and
/Users/davidteboul/bin/pythonStuff

>> DTm:~ davidteboul$ helloworld
>> -bash: helloworld: command not found

To run a command in the current directory (not in PATH) you have to
explicitly give the current directory in teh command, i.e.
./helloworld

Kent


More information about the Tutor mailing list