From 5b811facabcbdabef87c50e48e3e8c230d0df0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 8 Jun 2016 17:59:07 +0200 Subject: [PATCH] posix console/scripts: treat lines starting with # as comment --- src/platforms/posix/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/platforms/posix/main.cpp b/src/platforms/posix/main.cpp index ca0a471703..4d6791fdf4 100644 --- a/src/platforms/posix/main.cpp +++ b/src/platforms/posix/main.cpp @@ -119,12 +119,10 @@ static void run_cmd(const vector &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 {