Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: `pwd -P` with systemd-homed causes inconsistent cwd state



Hi Bart,

In case it helps you test this directly, I can reproduce the problem
(on Zsh 5.9) using just a bind mount, so this seems to be independent
of systemd-homed or even btrfs.

```  
mkdir -p x/{foo,bar}  
cd x  
sudo mount --bind foo bar  
cd bar  
zsh -c 'echo ${${:-a}:a}'  
```

should display `/.../x/bar/a` but displays `/.../x/foo/a`.

I guess it might be dependent on the directory iteration order, so if
it doesn't reproduce, try swapping `foo` and `bar`.

Greetings,  
Jan




Messages sorted by: Reverse Date, Date, Thread, Author