https://github.com/python/cpython/commit/d8d12b37b5e5acb354db84b07dab8de64a6b9475
commit: d8d12b37b5e5acb354db84b07dab8de64a6b9475
branch: main
author: Hood Chatham <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2024-12-09T10:03:11+08:00
summary:
gh-127503: Fix realpath handling in emscripten cli (#127632)
Corrects the handling of realpath on Linux.
files:
M Tools/wasm/emscripten/__main__.py
diff --git a/Tools/wasm/emscripten/__main__.py
b/Tools/wasm/emscripten/__main__.py
index c998ed71309dad..6843b6fdeceb8c 100644
--- a/Tools/wasm/emscripten/__main__.py
+++ b/Tools/wasm/emscripten/__main__.py
@@ -223,7 +223,7 @@ def configure_emscripten_python(context, working_dir):
if which grealpath > /dev/null; then
# It has brew installed gnu core utils, use that
REALPATH="grealpath -s"
- elif which realpath > /dev/null && realpath --version 2&>1 | grep
GNU > /dev/null; then
+ elif which realpath > /dev/null && realpath --version > /dev/null
2> /dev/null && realpath --version | grep GNU > /dev/null; then
# realpath points to GNU realpath so use it.
REALPATH="realpath -s"
else
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]