<#17981 `experimental_run_shell_command` eats firs...
# github-notifications
q
#17981 `experimental_run_shell_command` eats first pass-through arg Issue created by kaos Describe the bug When I pass arguments from the command line to an
experimental_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:
Copy code
experimental_run_shell_command(
    name="args-test",
    command='echo "cmd name (arg 0)=$0, args:$@"',
)
Copy code
./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/pants