Execute arguments via eval (#28)

Porting https://github.com/ROCm/omnitrace/pull/410.

As eval builtin interprets its arguments in the same way as shell would do, which would need some escape work, otherwise, it won't work if the input arguments contains e.g. a JSON string:

omnitrace-python -- ./test.py --json='{"foo": "bar"}'
이 커밋은 다음에 포함됨:
David Galiffi 작성하고 GitHub가 2024-11-14 13:26:52 -05:00를 커밋함
1 부모 51446f715f
커밋 ba0efacd3f
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -14,4 +14,4 @@ run-script()
eval $@
}
run-script ${PYTHON_EXECUTABLE} -m @SCRIPT_SUBMODULE@ $@
run-script ${PYTHON_EXECUTABLE} -m @SCRIPT_SUBMODULE@ "$(printf ' %q' "$@")"