You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Bruce Bolingbroke (JIRA)" <ji...@apache.org> on 2011/05/20 18:42:47 UTC

[jira] [Commented] (KARAF-542) Support of next line with '>' character

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

Bruce Bolingbroke commented on KARAF-542:
-----------------------------------------

There's one nuance that should be fixed. In Unix you can add the line break in the middle of a command like this:
$ ech\
> o Hell World!
Hell World!
$

But in Karaf, the line break is adding a space so the same command fails:
karaf@root> ech\
> o Hello World!
Error executing command: Cannot coerce hello(String) to any of []
karaf@root>

Jline is inserting a space where the line break is. This shows the space better:
karaf@root> echo 123\
> 456
123 456
karaf@root>

It also doesn't handle quoting correctly. On Unix:
$ echo "123\
> 456"
123456
$

On Karaf:
karaf@root> echo "123\
> 456"
123\ 456
karaf@root>

> Support of next line with '>' character
> ---------------------------------------
>
>                 Key: KARAF-542
>                 URL: https://issues.apache.org/jira/browse/KARAF-542
>             Project: Karaf
>          Issue Type: Improvement
>          Components: console
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Guillaume Nodet
>             Fix For: 2.2.1, 3.0.0
>
>
> On Unix shell (as bash or zsh), when the line is incomplete, the shell displays a '>' character and let you complete the line.
> It could be very helpful to have the same behavior in JLine.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira