Why make this bash specific by using command -v? How is that better than "which" which works on any shell I can think of?
Running FreeBSD, one of my pet peeves is folks who assume /bin/bash is going to exist everywhere.
Running FreeBSD, one of my pet peeves is folks who assume /bin/bash is going to exist everywhere.
But all my knowledge about that comes from a small drama some times ago when a debian maintainer wanted to remove "which" from its current package (see https://lwn.net/SubscriberLink/874049/bf89a969ed3dde87/).