The kernel never looks at PATH, that's why. It's a shell construct.
... and the question was: "Why doesn't the kernel look at PATH"
It's not a "shell construct" either, the standard execvp libc function looks at PATH.
... and the question was: "Why doesn't the kernel look at PATH"
It's not a "shell construct" either, the standard execvp libc function looks at PATH.