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

Eric Schwarzenbach commented on EXEC-94:
----------------------------------------

I  am really confused about the quoting. My experience was that the default (do 
quoting) worked fine as long as I used arguments that didn't need quoting. As 
soon as I had an argument that had a space in it, the quoting screwed it up, 
and I had use the addArgument with the boolean parameter for quoting and make 
it false. Then it worked fine. That's about as messed up as possible.

> CommandLine unconditionally trims arguments
> -------------------------------------------
>
>                 Key: EXEC-94
>                 URL: https://issues.apache.org/jira/browse/EXEC-94
>             Project: Commons Exec
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Major
>
> 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
(v8.20.10#820010)

Reply via email to