diff --git a/cpython-unix/build-cpython.sh b/cpython-unix/build-cpython.sh index c0c4ff25..4016aaf6 100755 --- a/cpython-unix/build-cpython.sh +++ b/cpython-unix/build-cpython.sh @@ -858,7 +858,7 @@ def fix_shebang(full): lines.extend([ b"#!/bin/sh\n", - b"'''exec' \"$(dirname -- \\\"$(realpath -- \\\"$0\\\")\\\")\"/'python${PYTHON_MAJMIN_VERSION}${PYTHON_BINARY_SUFFIX}' \"$0\" \"$@\"\n", + b"'''exec' \"\$(dirname -- \"\$(realpath -- \"\$0\")\")/python${PYTHON_MAJMIN_VERSION}${PYTHON_BINARY_SUFFIX}\" \"\$0\" \"\$@\"\n", b"' '''\n", ])