Lijun Liao created KARAF-4833: --------------------------------- Summary: Incorrect behaviour of executing commands over multi lines via source Key: KARAF-4833 URL: https://issues.apache.org/jira/browse/KARAF-4833 Project: Karaf Issue Type: Bug Components: karaf-shell Affects Versions: 4.1.0 Reporter: Lijun Liao Fix For: 4.1.0
Steps to reproduce the error: 1. Create a file demo.script with following text {code} feature:install \ "invalid-feature-name" {code} 2. In karaf shell, enter source demo.script You will get the following message: {code} karaf@root()> source tmp/demo.script 09:41:34 gogo: IllegalArgumentException: No matching features for invalid-feature-name/0.0.0 gogo: IllegalArgumentException: No matching features for invalid-feature-name/0.0.0 Error executing command: No matching features for invalid-feature-name/0.0.0 {code} Since the given feature does not exist, an IllegalArgumentException will be thrown. The expected behavour is that the throw exception will be outputted once. -- This message was sent by Atlassian JIRA (v6.3.4#6332)