pub fn shell_path_effects(
class: EffectClass,
raw: &str,
cwd: Option<&str>,
) -> Option<Vec<EffectKey>>Expand description
A path operand of a shell command, resolved the way the OS resolves it:
the longest existing prefix of the RAW path (.. not folded first, so
link/.. is the link target’s parent) is canonicalized, then the rest is
appended. A Delete also declares the entry as named (its parent
canonicalized, its last component kept), so both a symlink and, through a
trailing /, its target are covered. None when the path cannot be read
(shell expansion, relative with no working directory), when an existing
prefix cannot be canonicalized (a dangling symlink), or when .. follows
a component that does not exist.