summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-02-17 15:46:42 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:04 +0100
commit67fd3c37e6908795bd86220435a37637c9e16d63 (patch)
tree7237219ed66a726f951d0e7b5ddf0bf20c6b38b7 /input.c
parent063d3cc3f65f8f5b8dd636b7b8bd07e132e5aa28 (diff)
first stab at getting execve.c only compiled when needed
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
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;