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

Aleksandr Dubinsky commented on EXEC-94:
----------------------------------------

I tried asking this in another issue, but it's probably better posed here. Why 
does `addArgument` try to do any quoting at all? What's the use-case?

> CommandLine unconditionally trims arguments
> -------------------------------------------
>
>                 Key: EXEC-94
>                 URL: https://issues.apache.org/jira/browse/EXEC-94
>             Project: Commons Exec
>          Issue Type: Bug
>            Reporter: Sebb
>
> The CommandLine private Argument class unconditionally trims argument values. 
> This is wrong; it should be possible to pass arguments as-is to the executor.
> Fixing this unilaterally might break some code, so it is probably necessary 
> to introduce a new method, for example:
> addRawArgument(String)
> This should save the exact argument without trimming and without quoting.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to