From: Karl Berry Date: Mon, 14 Dec 2020 02:34:35 +0000 (-0800) Subject: python: don't assume $(...) in py-compile. X-Git-Tag: v1.16.4~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a753ef54ae4688f60a1a22415e028e4b51ca372;p=thirdparty%2Fautomake.git python: don't assume $(...) in py-compile. This change (very) partially fixes https://bugs.gnu.org/45205. * lib/py-compile: use `...` instead of $(...). Solaris 10 /bin/sh is still in use. --- diff --git a/lib/py-compile b/lib/py-compile index e56d98d6e..27407c7e6 100755 --- a/lib/py-compile +++ b/lib/py-compile @@ -115,7 +115,7 @@ else filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)" fi -python_major=$($PYTHON -V 2>&1 | sed -e 's/.* //;s/\..*$//;1q') +python_major=`$PYTHON -V 2>&1 | sed -e 's/.* //;s/\..*$//;1q'` if test -z "$python_major"; then echo "$me: could not determine $PYTHON major version, guessing 3" >&2 python_major=3