summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/ish.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ish.c b/bin/ish.c
index 3bb7c08f..e0870e29 100644
--- a/bin/ish.c
+++ b/bin/ish.c
@@ -93,6 +93,7 @@ int main(int argc, const char *argv[]) {
         int tok = tok_line(tokenizer, el_line(editLine), &argc, &argv, NULL, NULL);
         if (tok < 0) errx(EX_SOFTWARE, "tok_line");
         if (tok > 0) continue; // TODO: Change prompt.
+        if (!argc) continue;
 
         bool builtin = false;
         for (size_t i = 0; i < ARRAY_LEN(BUILTINS); ++i) {