On Sat, 6 Apr 2013, Thorsten Glaser wrote:

> Finn Thain dixit:
> >
> > On Sat, 6 Apr 2013, Thorsten Glaser wrote:
> >
> > > > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#ex$
> > >     ... If command is not found, the exit status shall be 127. If 
> > >     command is found, but it is not an executable utility, the exit 
> > >     status shall be 126.
> >
> > Well, ":" is a command but it's not an executable utility. So, is it 
> > "found" or "not found"?
>
> It's an executable utility. It's not a file, but it's a utility and 
> executable.
> 

Perhaps a built-in can be described as executable but it seems like a 
tautology to me.

Anyway, the command must still be "found", which means a PATH search. 
Built-ins by definition can't be "found"--

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_14
    The term "built-in" implies that the shell can execute the utility 
    directly and does not need to search for it.

Finn

Reply via email to