summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-10-13 23:27:21 -0400
committerJune McEnroe <june@causal.agency>2017-10-13 23:27:21 -0400
commit9caba899244b25b7ff3d91784db9440f2393a771 (patch)
tree9190a8598749fee006a471b49c4a6bb9c436a147 /bin
parentHandle child signals in ish (diff)
downloadsrc-9caba899244b25b7ff3d91784db9440f2393a771.tar.gz
src-9caba899244b25b7ff3d91784db9440f2393a771.zip
Handle blank lines in ish
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) {
6Add The Just CityJune McEnroe 2019-09-12Only GET the final redirect locationJune McEnroe 2019-09-12Consume entire bodyJune McEnroe 2019-09-10Add title -v flagJune McEnroe 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe 2019-09-08Set title User-AgentJune McEnroe 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe