Re-implemented aliases

This commit is contained in:
2025-03-18 21:50:53 -04:00
parent 62c76e70a6
commit 653a5fe344
12 changed files with 314 additions and 55 deletions

View File

@@ -611,9 +611,11 @@ pub fn enable_reaping() -> ShResult<()> {
/// Waits on the current foreground job and updates the shell's last status code
pub fn wait_fg(job: Job) -> ShResult<()> {
if job.children().is_empty() {
return Ok(()) // Nothing to do
}
flog!(TRACE, "Waiting on foreground job");
let mut code = 0;
flog!(DEBUG,job.pgid());
attach_tty(job.pgid())?;
disable_reaping()?;
let statuses = write_jobs(|j| j.new_fg(job))?;