diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-10-13 21:32:24 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-10-13 21:32:24 +0000 |
commit | ec3c5af51bfcb51f976b184af54d6b0c12b077f3 (patch) | |
tree | 62bbeddd3e75559a71fa45465439dc59493d27b1 /bin/pdksh/c_sh.c | |
parent | 647a0f92a2544a00265b0a8eaff14f417a2dbe0f (diff) |
Update to version 5.2.11.
Diffstat (limited to 'bin/pdksh/c_sh.c')
-rw-r--r-- | bin/pdksh/c_sh.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/pdksh/c_sh.c b/bin/pdksh/c_sh.c index 691abee19bf..fe090f09277 100644 --- a/bin/pdksh/c_sh.c +++ b/bin/pdksh/c_sh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: c_sh.c,v 1.2 1996/08/19 20:08:46 downsj Exp $ */ +/* $OpenBSD: c_sh.c,v 1.3 1996/10/13 21:32:18 downsj Exp $ */ /* * built-in Bourne commands @@ -288,9 +288,11 @@ c_read(wp) if ((cp = strchr(*wp, '?')) != NULL) { *cp = 0; - if (Flag(FTALKING)) { - /* at&t says it prints prompt on fd if its open + if (isatty(fd)) { + /* at&t ksh says it prints prompt on fd if it's open * for writing and is a tty, but it doesn't do it + * (it also doesn't check the interactive flag, + * as is indicated in the Kornshell book). */ shellf("%s", cp+1); } |