This commit is contained in:
2025-03-15 00:02:05 -04:00
parent 8f0bfbac79
commit 149e0ef2c8
75 changed files with 4335 additions and 7918 deletions

View File

@@ -1,17 +0,0 @@
use shellenv::jobs::{ChildProc, JobBldr};
use crate::prelude::*;
pub fn pwd(node: Node, shenv: &mut ShEnv) -> ShResult<()> {
let rule = node.into_rule();
if let NdRule::Command { argv: _, redirs } = rule {
let mut pwd = shenv.vars().get_var("PWD").to_string();
pwd.push('\n');
shenv.collect_redirs(redirs);
shenv.ctx_mut().activate_rdrs()?;
write_out(pwd)?;
} else { unreachable!() }
Ok(())
}