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. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature