Skip to content

Split translateCommandline at tabs and line breaks - #352

Merged
slachiewicz merged 1 commit into
masterfrom
agent/translate-commandline-whitespace
Nov 9, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/translate-commandline-whitespace

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
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