mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
use is_interactive instead of isatty to test whether we are in interactive mode
This commit is contained in:
parent
b9b6e867df
commit
ceba377ab8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue