We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a8625d commit fdf1d82Copy full SHA for fdf1d82
cpython-unix/build-cpython.sh
@@ -858,7 +858,8 @@ def fix_shebang(full):
858
859
lines.extend([
860
b"#!/bin/sh\n",
861
- b'"exec" "\$(dirname \$0)/python${PYTHON_MAJMIN_VERSION}${PYTHON_BINARY_SUFFIX}" "\$0" "\$@"\n',
+ b"'''exec' \"$(dirname -- \"$(realpath -- \"$0\")\")\"/'python${PYTHON_MAJMIN_VERSION}${PYTHON_BINARY_SUFFIX}' \"$0\" \"$@\"\n",
862
+ b"' '''\n",
863
])
864
865
lines.extend(fh)
0 commit comments