summaryrefslogtreecommitdiff
path: root/except.c
diff options
context:
space:
mode:
authorByron Rakitzis <byron@archone.tamu.edu>1994-03-07 00:00:01 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:59 +0100
commit5556dde4d3ad4e34267320b1411fc090b18a24b0 (patch)
tree9d22c48c75bcd778f30cbb2e37b6dff6abb4f1d2 /except.c
parent26bb34cf036027dfa22dfae8d8fc2f6bfd6acb75 (diff)
beta: rc-1.5betadev1
Diffstat (limited to 'except.c')
-rw-r--r--except.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/except.c b/except.c
index 48ea008..241d887 100644
--- a/except.c
+++ b/except.c
@@ -131,7 +131,7 @@ extern void sigint(int s) {
if (s != SIGINT)
panic("s != SIGINT in sigint catcher");
/* this is the newline you see when you hit ^C while typing a command */
- if (nl_on_intr)
+ if (interactive && nl_on_intr)
fprint(2, "\n");
nl_on_intr = TRUE;
redirq = NULL;