New comment by Piraty on void-packages repository https://github.com/void-linux/void-packages/pull/14267#issuecomment-529436476 Comment: It's the other way around you mean? `which ls` gives `/bin/ls` (which is the symlink) but should be `/usr/bin/ls` (which is the real file). I stumbled on this before, as `xbps-query -o $(which ls)` fails because of this. changing the order of `/bin/` and `/usr/bin/` might work as well? https://github.com/void-linux/void-packages/blob/20c06e3b0a7763716dd55a848b7c47aaac5a48f5/srcpkgs/base-files/files/profile#L17-L20