[
https://issues.apache.org/jira/browse/KARAF-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet closed KARAF-3394.
----------------------------------
Resolution: Won't Fix
Already fixed in Karaf 4.1.0
> 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
> Fix For: 4.1.0
>
>
> 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)