Convert `which` -> `command -v` for POSIX compliance
authorW. Trevor King <wking@tremily.us>
Sun, 5 May 2013 10:52:14 +0000 (06:52 -0400)
committerW. Trevor King <wking@tremily.us>
Sun, 5 May 2013 10:52:14 +0000 (06:52 -0400)
commit3a5aaa961ea25b024930b28fe3a510d6f6a0d509
treee285ef2c44a7bab52e4a51c1001fc583a5aa6042
parent213bad95540a35bfbc8ec92458583acf41572648
Convert `which` -> `command -v` for POSIX compliance

I learned (via the Git list [1]) that `which` is not part of POSIX.
The POSIX 2008 equivalent is `command -v` [2].  We can make the
Bash-init scripts more portable by sticking to the POSIX utilities
[3].  They'll also be slightly faster because `command` is a Bash
builtin:

  $ command -V command
  command is a shell builtin

[1]: http://article.gmane.org/gmane.comp.version-control.git/216007
[2]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
[3]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap04.html#tag_20
local-patch.examples/005-dotfiles-update-relative.patch
src/.bash_profile
src/.bashrc.d/05local_paths
src/.bashrc.d/90dotfiles
src/.xinitrc