mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-08 16:55:01 +00:00
Shell: flush stderr and stdout when using builtins
This fixed some tests that were failing. Thanks @alimpfard for this fix!
This commit is contained in:
@@ -1010,6 +1010,8 @@ bool Shell::run_builtin(const AST::Command& command, const NonnullRefPtrVector<A
|
||||
retval = builtin_##builtin(argv.size() - 1, argv.data()); \
|
||||
if (!has_error(ShellError::None)) \
|
||||
raise_error(m_error, m_error_description, command.position); \
|
||||
fflush(stdout); \
|
||||
fflush(stderr); \
|
||||
return true; \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user