diff options
author | June McEnroe <june@causal.agency> | 2017-10-13 23:27:21 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2017-10-13 23:27:21 -0400 |
commit | 9caba899244b25b7ff3d91784db9440f2393a771 (patch) | |
tree | 9190a8598749fee006a471b49c4a6bb9c436a147 | |
parent | Handle child signals in ish (diff) | |
download | src-9caba899244b25b7ff3d91784db9440f2393a771.tar.gz src-9caba899244b25b7ff3d91784db9440f2393a771.zip |
Handle blank lines in ish
Diffstat (limited to '')
-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) { |