пятница, 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