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

Sebb commented on EXEC-94:
--------------------------

I agree that addArgument should probably not do quoting (or trimming). But at 
least the quoting is optional.

It seems to me that the JVM should be responsible for doing any necessary 
quoting; the JVM is the code that should know how to interface with the OS fro 
which it was written.
If it does not do the correct quoting, then IMO that is a JVM bug.

> 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