提交 9ac629d7 authored 作者: Thomas Mueller's avatar Thomas Mueller

Shell tool: the built-in commands didn't work with a semicolon at the end.

上级 3956d5f2
......@@ -171,6 +171,7 @@ public class Shell extends Tool {
boolean end = trimmed.endsWith(";");
if (end) {
line = line.substring(0, line.lastIndexOf(';'));
trimmed = trimmed.substring(0, trimmed.length() - 1);
}
String upper = trimmed.toUpperCase();
if ("EXIT".equals(upper) || "QUIT".equals(upper)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论