Implement fg and bg builtins for job control.
Behavior:
fg brings a background or stopped job to the foreground (shell waits for completion)
bg resumes a stopped job in the background
- Both accept optional job number:
fg %1
- Without argument, operate on the most recent job
Acceptance criteria:
Implement
fgandbgbuiltins for job control.Behavior:
fgbrings a background or stopped job to the foreground (shell waits for completion)bgresumes a stopped job in the backgroundfg %1Acceptance criteria:
fgbrings job to foreground and waitsbgresumes stopped job in backgroundfg %1)