diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-06 15:19:37 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-01-06 15:19:37 -0800 |
commit | 309dfeb6a8b1244627acf4d8060593396b2a3946 (patch) | |
tree | 5e058cb322d29c676607c3c595354c010ace88d6 /fish.cpp | |
parent | bf3e4126b28d1327f047e6047cd4638d7a129730 (diff) |
Wrong sense for is_interactive_session check
Diffstat (limited to 'fish.cpp')
-rw-r--r-- | fish.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 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 &= isatty(STDIN_FILENO); |