mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 02:28:12 +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:
parent
cb22a6642d
commit
42e63d0a94
1 changed files with 2 additions and 0 deletions
|
@ -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; \
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue