You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found sources of Debian which command. In that sources all input paths with at least one slash (/) are treated as relative ones. For such files values from PATH environment variable are not used.
The same behavior is described in COMMAND EXECUTION section of man bash (which is referenced by man which for search algorithm).
At the moment, the library does not find an executable specified with relative path. For example:
ends up with "not found" error even if the file is there and has correct execution permissions. The same works fine on windows.
Standard Linux which utility works fine in such cases.
Is search order used in Linux
which
utility is documented somewhere?The text was updated successfully, but these errors were encountered: