[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No such file or directory

From: Eric Blake
Subject: Re: No such file or directory
Date: Wed, 02 Jan 2013 07:31:14 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

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

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]