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:
parent
545a381d5f
commit
542ee93dab
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user