bug-bash
[Top][All Lists]
Advanced

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

Re: -e and permission denied


From: Eric Blake
Subject: Re: -e and permission denied
Date: Fri, 04 Oct 2013 05:41:58 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

On 10/04/2013 03:18 AM, address@hidden wrote:
> 
>> The operating system is (on purpose) not letting you know if that file 
>> exists or not
> OS is not lying about file existence. It returns "permission denied" error, 
> which means file may or may not exist.

If you care about the difference between ENOENT and EPERM, then write
your program in C or other language, not shell.  There is no way for the
shell to tell you what errno the OS returned.  The shell is not going to
change just because of your request.

-- 
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]