From 9caba899244b25b7ff3d91784db9440f2393a771 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 13 Oct 2017 23:27:21 -0400 Subject: Handle blank lines in ish --- bin/ish.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit 1.4.1