Sample Header Ad - 728x90

how is whence different than which?

25 votes
2 answers
12828 views
I read https://unix.stackexchange.com/questions/9683/which-but-all/ but I cannot really get the difference. I am running zsh 5.4.2 on 64-bit debian-buster. Both which and whence are shell-builtins . Can people point out where whence would be more appropriate than which and vice-versa ? /home/shirish> zsh --version zsh 5.4.2 (x86_64-debian-linux-gnu) /home/shirish> type -a which which is a shell builtin which is /usr/bin/which which is /bin/which /home/shirish> type -a whence whence is a shell builtin
Asked by shirish (12954 rep)
Jan 28, 2018, 01:56 PM
Last activity: Oct 13, 2021, 03:24 PM