commit | 9028090ffd83a0114047c9c8becd9b2702ca8865 | [log] [tgz] |
---|---|---|
author | David Jencks <djencks@apache.org> | Wed Apr 30 18:01:38 2014 +0000 |
committer | David Jencks <djencks@apache.org> | Wed Apr 30 18:01:38 2014 +0000 |
tree | a4889593a321245772e28aebd4099884848e3445 | |
parent | 445be029ca921e5b5b0355918b10e1564df051e1 [diff] |
[FELIX-4447] fix regexp, thanks to Olivier Fayau git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1591422 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/ScrShellCommand.java b/scr/src/main/java/org/apache/felix/scr/impl/ScrShellCommand.java index a969328..2a7c795 100644 --- a/scr/src/main/java/org/apache/felix/scr/impl/ScrShellCommand.java +++ b/scr/src/main/java/org/apache/felix/scr/impl/ScrShellCommand.java
@@ -63,7 +63,7 @@ public void execute(String commandLine, PrintStream out, PrintStream err) { // Parse the commandLine to get the OBR command. - String[] st = commandLine.split("//s"); + String[] st = commandLine.split("\\s+"); // Ignore the invoking command. // Try to get the OBR command, default is HELP command. String command = st.length > 1? st[1]: HELP_CMD;