summaryrefslogtreecommitdiff
path: root/src/cmd/hush/hush.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/hush/hush.c')
-rw-r--r--src/cmd/hush/hush.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/hush/hush.c b/src/cmd/hush/hush.c
index 9bd248f..f8e2572 100644
--- a/src/cmd/hush/hush.c
+++ b/src/cmd/hush/hush.c
@@ -109,6 +109,10 @@ main(void)
read_input(buf, sizeof(buf));
write(STDOUT_FILENO, "\n", 1);
+ if (buf[0] == '\0') {
+ continue;
+ }
+
snprintf(binpath, sizeof(binpath), "/usr/bin/%s", buf);
if ((pid = spawn(argv[0], argv)) < 0) {
printf("unknown command \"%s\"\n", buf);