diff options
author | Paulo Fagundes <paulohefagundes@gmail.com> | 2019-11-09 10:23:21 -0700 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2019-11-09 12:38:01 -0500 |
commit | d2913e6cee1de35fda33317c9e34edcaac4b97f0 (patch) | |
tree | 913088bd57d57e4dbdb337ad27145855a1fd0c9b /test | |
parent | 5bb3c8a3437a55726a6bed191b008eff2afcda00 (diff) |
Replace `which` with `command -v`
Some distributions such as Arch Linux no longer install `which` by
default through the base package (see
https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/).
The maintainers have explained why `command -v` is superior:
https://www.reddit.com/r/archlinux/comments/de1er6/arch_linux_news_base_group_replaced_by_mandatory/f2v8uhu/.
Diffstat (limited to 'test')
-rw-r--r-- | test/tests/find-python-executable.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests/find-python-executable.bash b/test/tests/find-python-executable.bash index d4fa7eb..9a91a74 100644 --- a/test/tests/find-python-executable.bash +++ b/test/tests/find-python-executable.bash @@ -31,7 +31,7 @@ touch ~/tmp_bin/python && chmod +x ~/tmp_bin/python && cat >> ~/tmp_bin/python <<EOF #!$HOME/tmp_bin/bash -exec $(which python) +exec $(command -v python) EOF ' |