bug-bash
[Top][All Lists]
Advanced

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

Re: -e and permission denied


From: victor
Subject: Re: -e and permission denied
Date: Thu, 3 Oct 2013 14:36:32 -0700 (PDT)
User-agent: G2/1.0

пятница, 4 октября 2013 г., 1:27:28 UTC+4 пользователь Greg Wooledge написал:
> I assume you mean that bash will return 1 (failure) for [[ -e /path/to/file ]]

yes

> How else would you expect bash to handle this?

Point was that it's probably poorly documented: "-e True if file exists." ( 
http://www.gnu.org/software/bash/manual/bash.html ).

It's not immediately clear that false is returned if file exists but permission 
denied error happens.


reply via email to

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