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

Guillaume Nodet commented on KARAF-3394:
----------------------------------------

Afaik, the behavior has changed in Karaf 4 and is now consistent with the zsh 
shell at least.

> Correct the Ctrl-D behaviour of Karaf shell
> -------------------------------------------
>
>                 Key: KARAF-3394
>                 URL: https://issues.apache.org/jira/browse/KARAF-3394
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 3.0.2
>            Reporter: Martin Lichtin
>            Assignee: Guillaume Nodet
>            Priority: Major
>
> Ctrl-D can be used to exit from the shell and is a short-cut for 'logout'.
> {noformat}
>         __ __                  ____
>        / //_/____ __________ _/ __/
>       / ,<  / __ `/ ___/ __ `/ /_
>      / /| |/ /_/ / /  / /_/ / __/
>     /_/ |_|\__,_/_/   \__,_/_/
>   Apache Karaf (3.0.2)
> Hit '<ctrl-d>' or type 'logout' to disconnect shell from current session.
> {noformat}
> However, the current behaviour is odd and not aligned with how other shells 
> (e.g. bash) work.
> Ctrl-D should only cause a logout/disconnect when entered on an empty line.
> Currently, when one enters a command and then, in the middle of typing the 
> command (or editing it), hits Ctrl-D, one gets logged out. This is not how it 
> should work. 
> Hitting Ctrl-D in the middle of a text should, as in any other shell, delete 
> the character to the right of the cursor.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to