[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
command line tools and $PATH
From: |
tgate |
Subject: |
command line tools and $PATH |
Date: |
Mon, 13 Nov 2006 11:20:21 -0800 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060911) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm going step by step through some of the learning material on line and
I'm a bit confused by some of my results.
I'm following this (A First Tool):
http://www.gnustep.it/nicola/Tutorials/WritingMakefiles/node2.html
the source code (test.m):
#import <Foundation/Foundation.h>
int
main (void)
{
NSLog (@"This is the TEST program");
return 0;
}
when I compile and install, if I enter the full path the tool works
fine, however if I only specify the tool without the path nothing returns.
%> which test
./test
%> test
%> ./test
2006-11-13 11:12:13.664 test[18076] This is the TEST program
why do I need to put in the full path?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFFWMV1iOO2Yf3Jt4ARAkhGAJ9qcqf1AM0aWs1DREVWUdX9z8bzvgCffpDV
QOL8ijYlvH9olPN0mt4Z2HA=
=40ZV
-----END PGP SIGNATURE-----