From 92585fa759f13576b71c584704756ba8237b499c Mon Sep 17 00:00:00 2001 From: Curtis 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(+) (limited to 'bin/ish.c') 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