diff options
author | June McEnroe <programble@gmail.com> | 2017-10-13 23:27:21 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2017-10-13 23:27:21 -0400 |
commit | 92585fa759f13576b71c584704756ba8237b499c (patch) | |
tree | 087171db3ef73a7bad2d19987b31beb5d1bf4619 | |
parent | Handle child signals in ish (diff) | |
download | src-92585fa759f13576b71c584704756ba8237b499c.tar.gz src-92585fa759f13576b71c584704756ba8237b499c.zip |
Handle blank lines in ish
-rw-r--r-- | bin/ish.c | 1 |
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) { |