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

This commit is contained in:
Grissiom 2010-10-13 04:30:23 +08:00
parent b9b6e867df
commit ceba377ab8

View File

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