From 67fd3c37e6908795bd86220435a37637c9e16d63 Mon Sep 17 00:00:00 2001 From: tgoodwin Date: Tue, 17 Feb 1998 15:46:42 +0000 Subject: first stab at getting execve.c only compiled when needed --- input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input.c') diff --git a/input.c b/input.c index 6294159..1185870 100644 --- a/input.c +++ b/input.c @@ -120,7 +120,7 @@ static int fdgchar() { if (chars_out >= chars_in + 2) { /* has the buffer been exhausted? if so, replenish it */ while (1) { #if READLINE - if (interactive && istack->fd == 0) { + if (interactive && istack->fd == 0 && isatty(0)) { rlinebuf = rc_readline(prompt); if (rlinebuf == NULL) { chars_in = 0; -- cgit v1.2.3