Skip to content

Commit 0dfed53

Browse files
authored
Update x
Ensure that the exec command properly handles arguments when using exec "$python" $extra_arg "$xpy" "$@". The problem with this approach is that $extra_arg is unquoted, which could cause issues if it contains spaces or other special characters, especially when passing the arguments to python. To fix this, the exec command should be properly quoted to prevent any such issues.
1 parent c528b8c commit 0dfed53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ for SEARCH_PYTHON in py python3 python python2; do
3232
else
3333
extra_arg=""
3434
fi
35-
exec "$python" $extra_arg "$xpy" "$@"
35+
exec "$python" "$extra_arg" "$xpy" "$@"
3636
fi
3737
done
3838

0 commit comments

Comments
 (0)