From 6a753ef54ae4688f60a1a22415e028e4b51ca372 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 13 Dec 2020 18:34:35 -0800 Subject: [PATCH] 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. --- lib/py-compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3