Trim input buffer for command lookup

Fixes #79
This commit is contained in:
Eric Bottard
2017-06-01 15:23:53 +02:00
parent bc81d3ed9c
commit 30b49ef501

View File

@@ -102,7 +102,7 @@ public class Shell implements CommandRegistry {
}
String line = input.rawText();
String line = input.words().stream().collect(Collectors.joining(" ")).trim();
List<String> words = input.words();
String command = findLongestCommand(line);