3 ms·
If Bash is used as the SHELL for make[0], then it might be possible with the ${parameter@Q} parameter expansion[1]? I would still rather resort to python's shl
by whilenot-dev 2y ago
If Bash is used as the SHELL for make[0], then it might be possible with the ${parameter@Q} parameter expansion[1]?
I would still rather resort to python's shlex.quote[2] on the python side of things tbh.
[0]: https://stackoverflow.com/questions/589276/how-can-i-use-bash-syntax-in-makefile-targets https://stackoverflow.com/questions/589276/how-can-i-use-bas...
[1]: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Shell-Parameter-Expansion https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.... (at the end of the chapter)
[2]: https://docs.python.org/3/library/shlex.html#shlex.quote https://docs.python.org/3/library/shlex.html#shlex.quote