mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Wrong sense for is_interactive_session check
Fixes https://github.com/fish-shell/fish-shell/issues/499
This commit is contained in:
parent
bf3e4126b2
commit
309dfeb6a8
1 changed files with 1 additions and 1 deletions
2
fish.cpp
2
fish.cpp
|
@ -370,7 +370,7 @@ static int fish_parse_opt(int argc, char **argv, std::vector<std::string> *out_c
|
||||||
We are an interactive session if we have not been given an
|
We are an interactive session if we have not been given an
|
||||||
explicit command to execute, _and_ stdin is a tty.
|
explicit command to execute, _and_ stdin is a tty.
|
||||||
*/
|
*/
|
||||||
is_interactive_session &= has_cmd;
|
is_interactive_session &= ! has_cmd;
|
||||||
is_interactive_session &= (my_optind == argc);
|
is_interactive_session &= (my_optind == argc);
|
||||||
is_interactive_session &= isatty(STDIN_FILENO);
|
is_interactive_session &= isatty(STDIN_FILENO);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue