When you define a command task with a flag parameter with an equals sign and a quoted operand, the flag is omitted from the command execution.
For example, the task:
foo = "ls --color='always'"
Will output:
% poetry run poe foo
Poe => ls always
ls: always: No such file or directory
While one would expect:
% poetry run poe foo
Poe => ls --color=always
README.md pyproject.toml
This problem began with v0.23.0. It seems likely that the issue is that the resolve_command_tokens function is losing data in token_parts variable when it is re-initialized within this loop.
When you define a command task with a flag parameter with an equals sign and a quoted operand, the flag is omitted from the command execution.
For example, the task:
Will output:
While one would expect:
This problem began with v0.23.0. It seems likely that the issue is that the
resolve_command_tokens
function is losing data intoken_parts
variable when it is re-initialized within this loop.