[ 
https://issues.apache.org/jira/browse/MSHARED-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16561074#comment-16561074
 ] 

ASF GitHub Bot commented on MSHARED-750:
----------------------------------------

khmarbaise commented on issue #4: [MSHARED-750] - Unbalanced quotes in command 
with escaped double quot…
URL: https://github.com/apache/maven-shared-utils/pull/4#issuecomment-408668073
 
 
   Successful build. Also merged into master
   * 
https://gitbox.apache.org/repos/asf?p=maven-shared-utils.git;a=commitdiff;h=336594396f2e9be8a572100e30a611f8123a837d
   * https://issues.apache.org/jira/browse/MSHARED-750
   
   Thanks for your contribution.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Unbalanced quotes in command with escaped double quotation mark
> ---------------------------------------------------------------
>
>                 Key: MSHARED-750
>                 URL: https://issues.apache.org/jira/browse/MSHARED-750
>             Project: Maven Shared Components
>          Issue Type: Bug
>    Affects Versions: maven-shared-utils-3.2.1
>            Reporter: Kathryn Newbould
>            Assignee: Karl Heinz Marbaise
>            Priority: Major
>             Fix For: maven-shared-utils-3.3.0
>
>
> Due to MSHARED-749, the following test will error (due to an exception being 
> thrown) in master maven:
> {code:java}
> @Test
> public void 
> givenAnEscapedDoubleQuoteMarkInArgument_whenPreparingToExecuteCode_thenTheQuotationMarkRemainsEscaped()
>  throws Exception {
> final String command = "echo \"let\\\"s go\"";
> final String[] actual = CommandLineUtils.translateCommandline(command);
> final String[] expected = new String[]{"echo", "let\\\"s go"};
> assertArrayEquals(expected, actual);
> }
> {code}
> Results:
> {code:java}
> org.apache.maven.shared.utils.cli.CommandLineException: unbalanced quotes in 
> echo "let\"s go"{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to