Mercurial > hg > octave-lyh
diff src/utils.cc @ 175:bff84a41f944
[project @ 1993-10-22 19:03:52 by jwe]
(raw_mode): Only complain about stdin not being a tty if interactive
or forced interactive.
author | jwe |
---|---|
date | Fri, 22 Oct 1993 19:03:52 +0000 |
parents | 49ab724d0a32 |
children | 8a750c9ad116 |
line wrap: on
line diff
--- a/src/utils.cc +++ b/src/utils.cc @@ -83,6 +83,7 @@ #include "variables.h" #include "error.h" #include "utils.h" +#include "input.h" #include "octave.h" #include "mappers.h" #include "version.h" @@ -214,7 +215,7 @@ static int curr_on = 0; int tty_fd = STDIN_FILENO; - if (! isatty (tty_fd)) + if ((interactive || forced_interactive) && ! isatty (tty_fd)) { error ("stdin is not a tty!"); return;