[
https://issues.apache.org/jira/browse/KARAF-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14709605#comment-14709605
]
Guillaume Nodet commented on KARAF-3942:
----------------------------------------
I think the goal is not to have the quotes in the string of the argument, but
rather to have them interpreted by the shell so the
{code}
kar:create '{http://talend.org/greeter}Greeter'
{code}
would receive a single argument.
However, when the completion is executed inside an unclosed quoted argument, an
exception is thrown by the parser and completion does not occur at all.
> Using ' and " symbols with commands completion
> ----------------------------------------------
>
> Key: KARAF-3942
> URL: https://issues.apache.org/jira/browse/KARAF-3942
> Project: Karaf
> Issue Type: Bug
> Components: karaf-shell
> Affects Versions: 4.0.1
> Reporter: Pavlo Vasylchenko
>
> I need to use command completion with parameter, surrounded by quotes.
> But when I type
> {code}
> test:mycommand ' + TAB
> {code}
> I will have an exception.
> The same for default commands:
> {code}
> kar:create ‘ + TAB = Error executing command: String index out of range: 13
> {code}
> If I pass QName without quotes like:
> {code}
> {http://talend.org/greeter}Greeter
> {code}
> karaf thinks that it is two different arguments
> {code}
> {http://talend.org/greeter}
> {code}
> and
> {code}
> Greeter
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)