about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/builtin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 4ad4d9de9..560855b9e 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -3406,6 +3406,9 @@ bin_read(char *name, char **args, char *ops, int func)
 		    oshout = shout;
 		    init_shout();
 		}
+	    } else if (!shout) {
+		/* We need an output FILE* on the tty */
+		init_shout();
 	    }
 	    /* We should have a SHTTY opened by now. */
 	    if (SHTTY == -1) {