Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
On 8/20/13 11:02 AM, Greg Wooledge wrote:
> On Tue, Aug 20, 2013 at 05:48:12PM +0300, Aharon Robbins wrote:
>> In article <mailman.403.1376999138.10748.bug-bash@gnu.org> you write:
>>> 1) PATH is used by the kernel (exec family) to determine how commands are
>>> executed. The way PATH is used by the kernel is not likely to change.
>>> Having the shell treat it differently would lead to confusion.
>>
>> Actually, PATH searching is implemented in the C library and always
>> has been; there is only one real system call. The confusion likely arises
>> from the traditional practice of documenting all the exec calls on the
>> same manpage.
>
> Oh, really? That's very misleading and confusing.
It depends; most people don't really need to know the difference. But
yes, there is traditionally only execve(2) and everything else is built
on top of it.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/