summaryrefslogtreecommitdiff
path: root/Shell/Job.h
AgeCommit message (Collapse)Author
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.
2020-08-06Shell: Make Job constructors private and use a create() helperAndreas Kling
Also store PGIDs as pid_t since that's what they are.
2020-07-13Shell: Avoid waiting for jobs that were *just* unblockedAnotherTest
This fixes the issue with C-z not suspending the job on the first try. ...and further signal issues when the suspended job is contiued.
2020-07-13Shell: Put children in their own process groups and fix job controlAnotherTest
This commit fixes job control by putting children in their own process group, and proxying TTY signals to active jobs. This also cleans up the code around builtin_disown a bit to use the newer job interfaces.
2020-07-05Shell: Switch to a new parser and ASTAnotherTest
This commit also completely reworks the execution, highlighting and completion model to work with the new AST. New additions: - $(...) stdout captures - fd>&fd redirections - fd>&- redirections (close fd) - read-write redirections (<> path) - completely event-based execution - the weird idea of allowing the user to redirect the shell's own fds - variables in strings - local variables - minimal list support - adding hyperlinks to all paths that exist
2020-05-25Shell: Add the `disown' shell builtinAnotherTest
2020-05-17Shell: Switch to using Core::EventLoopAnotherTest
This commit refactors Shell to a Core::Object and switches its looping to Core::EventLoop.
2020-05-17Shell: Add job control capabilitiesAnotherTest
This patchset adds the `jobs`, `fg` and `bg` builtins.