Changeset d36ef38 for configure


Ignore:
Timestamp:
2023-04-07T10:51:52Z (20 months ago)
Author:
GitHub <noreply@…>
Branches:
master
Children:
5d9257cf
Parents:
3ce1bf6
git-author:
Robert Scheck <robert-scheck@…> (07-04-23 10:51:52)
git-committer:
GitHub <noreply@…> (07-04-23 10:51:52)
Message:

Switch from 'which' to 'command -v' to increase portability (#185)

In minimal buildroots 'which' might not be installed, while
'command -v' is a shell built-in in all POSIX 2008 compliant
shells, supported by at least ash, bash, busybox, dash, ksh,
mksh and zsh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r3ce1bf6 rd36ef38  
    833833if [ -z "$PYTHON" ]; then
    834834        for pp in python python3 python2; do
    835                 if which $pp > /dev/null; then
     835                if command -v $pp > /dev/null; then
    836836                        PYTHON=$pp
    837837                        break
Note: See TracChangeset for help on using the changeset viewer.