One I thought would trip it up is doing a chmod 000 on a file owned by root and testing it existed using a non-root user. Nope, you still get the -e returning true. (Which does seem to be the desired semantics, since the file does exist.
Update: Ahh, here's a case. If the user running the script cannot cd into the directory containing the file, then -e fails.
In reply to Re: What conditions cause the -e file test to return false
by Sinistral
in thread What conditions cause the -e file test to return false
by malevy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |