linux/bin/code.sh: use command -v instead of which#82097
linux/bin/code.sh: use command -v instead of which#82097Tyriar merged 1 commit intomicrosoft:masterfrom jplatte:patch-1
Conversation
|
More generally, see https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then
Thanks for doing your part to help get us one step closer to a world in which the "which" program is not used. :) |
commandis a bash-builtin (see the Bash manual) that is guaranteed to always be present, in contrast towhich, which is not required to be available for bash to work.This dependency on
whichhas recently caused an issue for a small percentage of arch linux users where VSCode wouldn't start anymore, see visual-studio-code-bin on the AUR. By removing the dependency, VSCode becomes a tiny bit more self-contained (unless it's still used somewhere else of course).