On Tue, Aug 20, 2013 at 05:48:12PM +0300, Aharon Robbins wrote: > In article <mailman.403.1376999138.10748.bug-b...@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. HP-UX 10.20 exec(2) says: The exec*() system calls, in all their forms, ... So that's a complete lie, I guess. (And they do appear to be defined in /lib/libc.a if I'm reading the output of nm correctly.)