diff --git a/src/funcs.c b/src/funcs.c index 5179192..6730b47 100644 --- a/src/funcs.c +++ b/src/funcs.c @@ -2841,7 +2841,7 @@ test_eval(Test_env *te, Test_op op, const char *opnd1, const char *opnd2, case TO_FILAXST: /* -e */ case TO_FILEXST: - return (test_stat(opnd1, &b1) == 0); + return (test_access(opnd1, F_OK) == 0); /* -f */ case TO_FILREG: