mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05: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
Notes:
sideshowbarker
2024-07-18 20:26:40 +09:00
Author: https://github.com/g-w1 Commit: https://github.com/SerenityOS/serenity/commit/42e63d0a942 Pull-request: https://github.com/SerenityOS/serenity/pull/6231 Reviewed-by: https://github.com/alimpfard ✅
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
Reference in a new issue