diff options
| author | tgoodwin <tgoodwin> | 1998-02-17 15:46:42 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:04 +0100 |
| commit | 67fd3c37e6908795bd86220435a37637c9e16d63 (patch) | |
| tree | 7237219ed66a726f951d0e7b5ddf0bf20c6b38b7 /input.c | |
| parent | 063d3cc3f65f8f5b8dd636b7b8bd07e132e5aa28 (diff) | |
first stab at getting execve.c only compiled when needed
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |