karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Achim Nierbeck (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-3942) Using ' and " symbols with commands completion
Date Thu, 20 Aug 2015 13:18:45 GMT

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

Achim Nierbeck commented on KARAF-3942:
---------------------------------------

those special characters are interpreted as with a std. bash, therefore you need to make sure
you escape those. 
If that isn't possible you'll need to create a custom org.apache.karaf.shell.api.console.Parser
But beware this will only work with Karaf 4

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

Mime
View raw message