Change libreadline version from which it's OK to run from a pipeline

This commit is contained in:
Stefan Rueger 2023-01-03 16:31:50 +00:00
parent b6da4c167e
commit eeb92b3c52
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 1 additions and 1 deletions

View File

@ -1432,7 +1432,7 @@ int terminal_mode(PROGRAMMER *pgm, struct avrpart *p) {
// EditLine (NetBSD, MacOS) has issues with that, so only use it when
// running interactively.
// EditLine uses version 4.2 (0x0402).
if (isatty(fileno(stdin)) || (rl_readline_version >= 0x0500))
if (isatty(fileno(stdin)) || rl_readline_version > 0x0500)
return terminal_mode_interactive(pgm, p);
#endif
return terminal_mode_noninteractive(pgm, p);