summaryrefslogtreecommitdiff
path: root/interactive.c
diff options
context:
space:
mode:
Diffstat (limited to 'interactive.c')
-rw-r--r--interactive.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/interactive.c b/interactive.c
index 545a52d..239c001 100644
--- a/interactive.c
+++ b/interactive.c
@@ -39,6 +39,10 @@ int sh_interactive(void)
return 0;
}
+ if (strlen(ed.cur->buf) == 0) {
+ continue;
+ }
+
struct command *command = sh_parse(ed.cur->buf);
if (command) {
sh_execute(command);