Registry Mirror
Skip to content

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

translateCommandline now treats \t, \n and \r like a space outside quotes, as the shell does for IFS whitespace; quoted content is untouched. An argument that contained one of these characters unquoted was previously passed through with it, so such input now yields more arguments.

Closes #329

Verified: mvn -B -ntp verify → BUILD SUCCESS, 254 tests, 0 failures, 3 skipped (macOS, JDK 17)

@slachiewicz slachiewicz added the bug Something isn't working label Nov 8, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 9, 2026 07:15
@slachiewicz
slachiewicz merged commit ba90392 into master Nov 9, 2026
13 checks passed
@slachiewicz
slachiewicz deleted the agent/translate-commandline-whitespace branch November 9, 2026 15:09
slachiewicz added a commit to mojohaus/exec-maven-plugin that referenced this pull request Nov 15, 2026
translateCommandline now splits at unquoted tabs and line breaks itself (codehaus-plexus/plexus-utils#352). The regression tests from #571 stay and pass without the helper.
slachiewicz added a commit to mojohaus/exec-maven-plugin that referenced this pull request Nov 15, 2026
translateCommandline now splits at unquoted tabs and line breaks itself (codehaus-plexus/plexus-utils#352). The regression tests from #571 stay and pass without the helper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CommandLineUtils.translateCommandline() splits arguments only at space

1 participant