Bug fix: Preserve effective cwd when cd targets the current directory.
Previously, commands like cd . or cd /current/path would reset the effective cwd to unknown, potentially causing false-positive blocks on subsequent segments. The analyzer now resolves cd targets and recognizes when the directory hasn't actually changed, keeping the cwd intact.
Changes
- fix(analyze): Preserve effective cwd when
cdtargets the current directory - fix(explain): Align cwd trace with resolved cd-to-same-directory behavior
- test(rm): Assert
rm -rfstays allowed aftercdto current cwd