Revert "use is_interactive instead of isatty to test whether we are in interactive mode"

This reverts commit ceba377ab8.
This commit is contained in:
Grissiom 2010-11-22 08:43:21 +08:00
parent fa148bf59f
commit e0ba91db31

View file

@ -2207,7 +2207,7 @@ static int builtin_read( wchar_t **argv )
/*
Check if we should read interactively using \c reader_readline()
*/
if( is_interactive && builtin_stdin == 0 )
if( isatty(0) && builtin_stdin == 0 )
{
wchar_t *line;