[ 
https://issues.apache.org/jira/browse/KARAF-4838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet resolved KARAF-4838.
------------------------------------
    Resolution: Fixed

> The shell:source command does not forward Ctrl+C to the command being executed
> ------------------------------------------------------------------------------
>
>                 Key: KARAF-4838
>                 URL: https://issues.apache.org/jira/browse/KARAF-4838
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 4.1.0
>            Reporter: Lijun Liao
>            Assignee: Guillaume Nodet
>             Fix For: 4.1.0
>
>
> In karaf 4.0.7, the InterruptedException (triggered by CTRL + C) is forwarded 
> by the karaf shell to the commands executed via source. This forwarding is 
> useful since the application can then decide whether it should cancel the 
> action. However this forwarding has been deactivated in karaf 4.1.0.
> Steps to reproduce the problem in Linux:
> 1. Create a file demo.script that contains the line
>    "sleep 10"
> 2. In karaf shell, execute the commands via
>   "source demo.scipt"
> 3. In karaf shell, enter CTRL + C, you will see
> "gogo: InterruptedException: null" instead of the expected "sleep: 
> interrupted"
> Additionally, if you enter CTRL + D after step 3 to exit karaf, the 
> OS-terminal will be in invalid state. You cannot see what you enter in the 
> OS-terminal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to