diff options
| author | tgoodwin <tgoodwin> | 1998-02-12 13:03:32 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:03 +0100 |
| commit | 8d8059fc729b5152b4b168944ce9399cc63cbf38 (patch) | |
| tree | 430b6b7c4eced3495f90bb1f6617fc1fabe78526 /input.c | |
| parent | 02d9475165e3b52bce47b0699fb8a9f67da4f0f4 (diff) | |
check that it's a file descriptor we've got before seeing if it' stdin
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -280,7 +280,7 @@ extern Node *doit(bool execit) { } if ((s = varlookup("prompt")) != NULL) { #if READLINE - if (istack->fd == 0) + if (istack->t == iFd && istack->fd == 0) prompt = s->w; else #endif @@ -367,11 +367,10 @@ extern void print_prompt2() { lineno++; if (interactive) { #if READLINE - if (istack->fd == 0) + if (istack->t == iFd && istack->fd == 0) prompt = prompt2; else #endif fprint(2, "%s", prompt2); } } - |