1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

Shell: Do not reset the terminal attributes when command is run in bg

Also removes a FIXME that no longer applies.
This commit is contained in:
AnotherTest 2020-09-09 23:37:38 +04:30 committed by Andreas Kling
parent c296bcc1d9
commit 927e2fc6bc
2 changed files with 8 additions and 8 deletions

View file

@ -348,10 +348,6 @@ void Background::dump(int level) const
RefPtr<Value> Background::run(RefPtr<Shell> shell)
{
// FIXME: Currently this does not work correctly if `m_command.would_execute()',
// as it runs the node, which means nodes likes And and Or will evaluate
// all but their last subnode before yielding to this, causing a command
// like `foo && bar&` to effectively be `foo && (bar&)`.
auto commands = m_command->to_lazy_evaluated_commands(shell);
for (auto& command : commands)
command.should_wait = false;