How are additional task arguments supposed to work together with shell entrypoints? #1355
-
So, we're using a Batect task with a login shell as the entry point, very similar to the example here:
So the That makes the execution fail for obvious reasons. While a work-around is to create a new task that inlines the additional arguments to inside the quotes of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The behaviour you're seeing is the intended behaviour: additional arguments on the command line are appended to the command's arguments, rather than added into the last argument of the command. Is there a reason why you're using a shell entrypoint like this? If the entrypoint is required, then the only solution I'm aware of is to do as you mentioned and create a shell script that is used as the command that handles the additional arguments in the way that you'd like. |
Beta Was this translation helpful? Give feedback.
The behaviour you're seeing is the intended behaviour: additional arguments on the command line are appended to the command's arguments, rather than added into the last argument of the command.
Is there a reason why you're using a shell entrypoint like this?
If the entrypoint is required, then the only solution I'm aware of is to do as you mentioned and create a shell script that is used as the command that handles the additional arguments in the way that you'd like.