Use eaccess() instead of access() for the type builtin, like we do for the

test builtin.

Submitted by:	Martin Kammerhofer
This commit is contained in:
stefanf 2007-01-18 22:31:22 +00:00
parent 545a381d5f
commit 542ee93dab

View File

@ -780,7 +780,7 @@ typecmd_impl(int argc, char **argv, int cmd)
" a tracked alias for" : "",
name);
} else {
if (access(argv[i], X_OK) == 0) {
if (eaccess(argv[i], X_OK) == 0) {
if (cmd == TYPECMD_SMALLV)
out1fmt("%s\n", argv[i]);
else