Hot answers tagged

2 votes

When does the shell search PATH?

The POSIX-standard-conforming behavior with regard to PATH is not to use that variable if the input contains a slash anywhere. For instance if the command is foo, then the PATH is searched, but not if ...
Kaz's user avatar
  • 8,135
1 vote

When does the shell search PATH?

Looking only at the exercise quoted in the question, after thinking about it a bit, I think defining cat to be a function or script that does something other than the standard cat might also work. I ...
muru's user avatar
  • 72.3k

Only top scored, non community-wiki answers of a minimum length are eligible