quaint-telephone-89068
01/12/2023, 6:52 PMexperimental_run_shell_command my first argument gets "eaten" as being arg 0 (the executable name).
Pants version
main
OS
Mac
Additional info
May apply to experimental_shell_command as well, relating to #17616
Example:
experimental_run_shell_command(
name="args-test",
command='echo "cmd name (arg 0)=$0, args:$@"',
)
./pants run :args-test -- arg1 arg2 arg3 arg4
cmd name (arg 0)=arg1, args:arg2 arg3 arg4
I would prefer if we injected a made up value for arg 0 (perhaps the target address?), as I don't expect to pass that on the command line.
pantsbuild/pantsuser
01/25/2023, 10:29 PM