You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Vishal Dhawani (JIRA)" <ji...@apache.org> on 2011/01/17 12:10:44 UTC
[jira] Created: (CLI-213) Quoted string parsing
Quoted string parsing
---------------------
Key: CLI-213
URL: https://issues.apache.org/jira/browse/CLI-213
Project: Commons CLI
Issue Type: Bug
Components: Parser
Affects Versions: 1.2
Environment: Kubuntu, JRE 1.6
Reporter: Vishal Dhawani
Priority: Minor
When you pass a quoted string as argument in command line (eg. java Hello -e "fname=\"vishal\" and lname=\"dhawani\""), it gives you one character less in result (eg. cmdLine.getOptionValue("e") will return you fname="vishal" and lname="dhawani).
Actually when you see the args[] passed to java, args[1] is fname="vishal" and lname="dhawani" .
The above thing works when we give extra space, ie. java Hello -e "fname=\"vishal\" and lname=\"dhawani\" ".
Please check.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CLI-213) Quoted string parsing
Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982788#action_12982788 ]
Emmanuel Bourg commented on CLI-213:
------------------------------------
Thank you for the report Vishal. This is a duplicate of CLI-185, you can check with the code on the trunk, your test case should work fine.
> Quoted string parsing
> ---------------------
>
> Key: CLI-213
> URL: https://issues.apache.org/jira/browse/CLI-213
> Project: Commons CLI
> Issue Type: Bug
> Components: Parser
> Affects Versions: 1.2
> Environment: Kubuntu, JRE 1.6
> Reporter: Vishal Dhawani
> Priority: Minor
>
> When you pass a quoted string as argument in command line (eg. java Hello -e "fname=\"vishal\" and lname=\"dhawani\""), it gives you one character less in result (eg. cmdLine.getOptionValue("e") will return you fname="vishal" and lname="dhawani).
> Actually when you see the args[] passed to java, args[1] is fname="vishal" and lname="dhawani" .
> The above thing works when we give extra space, ie. java Hello -e "fname=\"vishal\" and lname=\"dhawani\" ".
> Please check.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CLI-213) Quoted string parsing
Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bourg resolved CLI-213.
--------------------------------
Resolution: Duplicate
> Quoted string parsing
> ---------------------
>
> Key: CLI-213
> URL: https://issues.apache.org/jira/browse/CLI-213
> Project: Commons CLI
> Issue Type: Bug
> Components: Parser
> Affects Versions: 1.2
> Environment: Kubuntu, JRE 1.6
> Reporter: Vishal Dhawani
> Priority: Minor
> Fix For: 1.3
>
>
> When you pass a quoted string as argument in command line (eg. java Hello -e "fname=\"vishal\" and lname=\"dhawani\""), it gives you one character less in result (eg. cmdLine.getOptionValue("e") will return you fname="vishal" and lname="dhawani).
> Actually when you see the args[] passed to java, args[1] is fname="vishal" and lname="dhawani" .
> The above thing works when we give extra space, ie. java Hello -e "fname=\"vishal\" and lname=\"dhawani\" ".
> Please check.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CLI-213) Quoted string parsing
Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLI-213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bourg updated CLI-213:
-------------------------------
Fix Version/s: 1.3
> Quoted string parsing
> ---------------------
>
> Key: CLI-213
> URL: https://issues.apache.org/jira/browse/CLI-213
> Project: Commons CLI
> Issue Type: Bug
> Components: Parser
> Affects Versions: 1.2
> Environment: Kubuntu, JRE 1.6
> Reporter: Vishal Dhawani
> Priority: Minor
> Fix For: 1.3
>
>
> When you pass a quoted string as argument in command line (eg. java Hello -e "fname=\"vishal\" and lname=\"dhawani\""), it gives you one character less in result (eg. cmdLine.getOptionValue("e") will return you fname="vishal" and lname="dhawani).
> Actually when you see the args[] passed to java, args[1] is fname="vishal" and lname="dhawani" .
> The above thing works when we give extra space, ie. java Hello -e "fname=\"vishal\" and lname=\"dhawani\" ".
> Please check.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.