New comment by Chocimier on void-packages repository https://github.com/void-linux/void-packages/pull/14267#issuecomment-810582152 Comment: `which` looks for executable in directories of `$PATH`, in order, as passed to it by shell. Shell build `$PATH` as specified in /etc/profile, that is by appending to `$PATH` passed from parent process. Parent process may be agetty from `util-linux`, ssh, graphical login manager like lxdm. Order of /etc/profile is right, but all directories there are read by `which` after directories from parent, that for some parents are symlinks, leading to reporting symlink directories rather than real ones. Given there is some usage of not reset PATH in profile, I would like to sync defaults of login managers.