davsclaus commented on code in PR #27966:
URL: https://github.com/apache/camel/pull/27966#discussion_r4298253521
##########
dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/RestartProcess.java:
##########
@@ -179,7 +179,8 @@ static List<String> parseCommandLine(String commandLine) {
if (escaped) {
current.append(c);
escaped = false;
- } else if (c == '\\') {
+ } else if (c == '\\' && i + 1 < commandLine.length() &&
commandLine.charAt(i + 1) == '"') {
Review Comment:
Thanks — fixed rather than documented in c36038912f2f: the parser now
follows the Windows quoting rules (backslashes count only in front of a quote:
2n are n and the quote ends the quoted part, 2n + 1 are n and a quote
character), so `"\\server\share\\"` is read as `\\server\share\`. Both cases
are in `testCommandLineOfTheIntegration`.
_Claude Code on behalf of davsclaus_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]