mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-10 01:21:16 -03:00
Clean up and clarify reader_exit()
This commit is contained in:
@@ -395,7 +395,7 @@ int main(int argc, char **argv) {
|
||||
argv + my_optind);
|
||||
}
|
||||
res = run_command_list(&opts.batch_cmds, {});
|
||||
reader_exit(0, 0);
|
||||
reader_set_end_loop(false);
|
||||
} else if (my_optind == argc) {
|
||||
// Implicitly interactive mode.
|
||||
res = reader_read(STDIN_FILENO, {});
|
||||
|
||||
Reference in New Issue
Block a user