On 01/02/2013 07:28 AM, Michael Williamson wrote:
Hi Aharon,
Thanks for your explanation. Now I have another question.
Why is the error message for ENOENT simply
"No such file or directory", when the man page for execve
has this complete description:
"The file filename or a script or ELF interpreter does not exist,
or a shared library needed for file or interpreter cannot be
found."?
Because that's what strerror() in your libc reports. It's not bash's
fault if libc produces a shorter message (correct in the common case)
than what the man pages says is possible in the more comprehensive case.