[uClibc] Why do I have to add ./ to execute programs
Mark Peter Mansell
uclibc at snooze.org.uk
Mon Jun 21 07:35:04 UTC 2004
Have a look on http://tldp.org/ for some guides and tutorials on how to use Unix/Linux. To answer your current question, look up PATH in the Bash books.
I guess you come from a DOS/Windows environment where the current directory is implicit in the execution search. With most Unix/Linux command shells, this is not the case and '.' (the current directory) has to be added explicitly. This does have the advantage of being able to manipulate the search order in the current execution shell.
There is a lot to go through in the Linux Documentation Project site, but if you need to make an embedded system work, there is no other way, sadly.
(RTFM - the last resort :) )
Hope that is of help,
Mark
----- Original Message -----
From: Hoffknecht
To: uclibc at uclibc.org
Sent: Monday, June 21, 2004 2:30 AM
Subject: [uClibc] Why do I have to add ./ to execute programs
Pretty much all programs require that I add ./ in front of the executable in the current directory, such as ./gdb . Why is that ? The shell commands don't require it ....
Marc
------------------------------------------------------------------------------
_______________________________________________
uClibc mailing list
uClibc at uclibc.org
http://uclibc.org/mailman/listinfo/uclibc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20040621/98c9305c/attachment.htm
More information about the uClibc
mailing list