summaryrefslogtreecommitdiff
path: root/Source/Applications/Shell/Shell.class.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Applications/Shell/Shell.class.cpp')
-rw-r--r--Source/Applications/Shell/Shell.class.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Applications/Shell/Shell.class.cpp b/Source/Applications/Shell/Shell.class.cpp
index a2eb490..4283b30 100644
--- a/Source/Applications/Shell/Shell.class.cpp
+++ b/Source/Applications/Shell/Shell.class.cpp
@@ -27,6 +27,7 @@ int Shell::run() {
while (1) {
outvt << "{" << cwd.getName() << "}: " << FLUSH;
String s = invt.get();
+ if (s.contains(EOF)) return 0;
if (s.empty()) continue;
while (s[0] == WChar(" ") or s[0] == WChar("\t")) {
s = s.substr(1, s.size() - 1);