summaryrefslogtreecommitdiff
path: root/Shell/Job.cpp
AgeCommit message (Collapse)Author
2020-10-29Shell: Do not bail early when printing jobs if waitpid() failsAnotherTest
This fixes running `jobs` in a child process. Also makes sure that stdout is flushed when writing jobs out.
2020-10-26Shell: Implement AK::Formatter::format() for AST::CommandAnotherTest
...and use that to display jobs.
2020-10-04Shell: Move everything to the Shell namespaceAnotherTest
Also provide a basic default-constructor.
2020-09-09Shell: Fix job control and backgroundingAnotherTest
This patchset makes the shell capable of lazily resolving and executing sequences of commands, to allow for putting logical sequences in the background. In particular, it enables And/Or/Sequence nodes to be run in the background, and consequently unmarks them as `would_execute`. Doing so also fixes job control to an extent, as jobs are now capable of having 'tails', so sequences can be put in the background while preserving their following sequences.
2020-08-12Shell: Moves pipelined processes to one process groupAnotherTest
2020-08-06Shell: Move printing job status into a Job::print_status() helperAndreas Kling
This is only used by the "jobs" builtin right now, but more soon.