console: fix -i being overruled by !isatty()
The interactive mode has been ignored when stdin was not a tty and is no more. Now results of another command can be handled by tarantool. Before the patch: ``` $ echo 42 | tarantool -i LuajitError: stdin:1: unexpected symbol near '42' fatal error, exiting the event loop ``` After the patch: ``` $ echo 42 | tarantool -i Tarantool 2.5.0-130-ge3cf64a6c type 'help' for interactive help tarantool> 42 --- - 42 ... ``` Closes #5064 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-5064-ignore-i-flag-without-tty.md 3 additions, 0 deletionschangelogs/unreleased/gh-5064-ignore-i-flag-without-tty.md
- src/lua/init.c 2 additions, 1 deletionsrc/lua/init.c
- test/app-luatest/gh_5064_console_ignore_i_flag_without_tty_test.lua 22 additions, 0 deletions...uatest/gh_5064_console_ignore_i_flag_without_tty_test.lua