Commit b21556d2 authored by Eli Schwartz's avatar Eli Schwartz Committed by Ruben Bridgewater
Browse files

build: fix inability to detect correct python command in configure



The "which" utility is not guaranteed to be installed, and if it is, its
behavior is not portable.

Conversely, the "command -v" shell builtin is required to exist in all
POSIX 2008 compliant shells, and is thus guaranteed to work everywhere.

Examples of open-source shells likely to be installed as /bin/sh on
Linux, which implement the 12-year-old standard: ash, bash, busybox,
dash, ksh, mksh and zsh.

Signed-off-by: default avatarEli Schwartz <eschwartz@archlinux.org>

PR-URL: https://github.com/nodejs/node/pull/32925


Reviewed-By: default avatarRichard Lau <riclau@uk.ibm.com>
Reviewed-By: default avatarMatheus Marchini <mat@mmarchini.me>
Reviewed-By: default avatarRuben Bridgewater <ruben@bridgewater.de>
parent 5e4c0255
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment