posix console/scripts: treat lines starting with # as comment

This commit is contained in:
Beat Küng
2016-06-08 17:59:07 +02:00
parent a7c7a46be8
commit 5b811facab
+1 -3
View File
@@ -119,12 +119,10 @@ static void run_cmd(const vector<string> &appargs, bool exit_on_fail)
}
}
} else if (command.compare("help") == 0) {
list_builtins();
} else if (command.length() == 0) {
} else if (command.length() == 0 || command[0] == '#') {
// Do nothing
} else {