commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksandr Dubinsky (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EXEC-94) CommandLine unconditionally trims arguments
Date Sun, 25 Oct 2015 10:58:28 GMT

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

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

The behavior of `addArgument` has other issues. If I want to pass an argument that contains
quotes, I can successfully pass " on Linux but need to use \" on Windows. This is true whether
I am passing this value via `addArgument(arg, false)` or as a substitution. I forget what
code is responsible for this. It might be the JDK, in fact. But Commons Exec needs to compensate.

> 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)

Mime
View raw message