pub fn join_cwd(cur: Option<&str>, target: &str) -> Option<String>Expand description
Resolve a cd target to a new absolute working directory, or None if it can’t be
pinned statically (cd, cd -, cd ~…, cd $VAR) — the caller then leaves the running
cwd unchanged. cur is the current cwd, needed to resolve a relative target. Used by
intra-line cd tracking (HP-19 #2).