quaint-telephone-89068
03/06/2023, 8:50 PMProcess composed for a experimental_run_shell_command is built with `bash -c`:
pants/src/python/pants/backend/shell/shell_command.py
Line 226 in </pantsbuild/pants/commit/5a04478e210b88e28c644783866891a82b290c78|5a04478>
...appending additional args to argv (as the run goal does) does not work to pass those arguments to the script.
To fix this, the setup for the Process should actually create a script file (via CreateDigest), and then invoke bash like:
bash $script
...which would mean that appending the run args would look like:
bash $script $args
pantsbuild/pantsuser
03/06/2023, 8:50 PM