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
commit 927e2fc6bc
Notes: sideshowbarker 2024-07-19 02:47:56 +09:00
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;