sh: Print "exit" on EOF only when the shell is in interactive mode
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
84c1871d30
commit
4dcee8f828
@ -88,7 +88,7 @@ Result<int> luna_main(int argc, char** argv)
|
||||
auto cmd = TRY(input_file->read_line());
|
||||
if (cmd.is_empty())
|
||||
{
|
||||
puts("exit");
|
||||
if (interactive) puts("exit");
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user