Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: `pwd -P` with systemd-homed causes inconsistent cwd state
- X-seq: zsh-workers 52316
- From: "Jan Alexander Steffens (heftig)" <heftig@xxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: `pwd -P` with systemd-homed causes inconsistent cwd state
- Date: Mon, 20 Nov 2023 23:23:01 +0100
- Archived-at: <https://zsh.org/workers/52316>
- Autocrypt: addr=heftig@xxxxxxxxxxxxx; prefer-encrypt=mutual; keydata=mDMEXrlG5RYJKwYBBAHaRw8BAQdAUHS8Z8nv7Qpds2idiabXgBePjduNTS6FDPew5ioWVzu0OEphbiBBbGV4YW5kZXIgU3RlZmZlbnMgKGhlZnRpZykgPGphbi5zdGVmZmVuc0BnbWFpbC5jb20+iJMEExYIADsFCwkIBwIGFQoJCAsCBBYCAwECHgECF4ACGQEWIQSi/zo2qqVmVBCQZKsZgC+LDXD8MAUCXsft+AIbAwAKCRAZgC+LDXD8MGBcAQDNyC78jjQIB06d3XoRLeZtNzCauYl5H7eb/7NwV0G1qwD/fu6vWzI8o08S4XenjFhLUFsiwQ4nSk00JdFrySXRHgq0PEphbiBBbGV4YW5kZXIgU3RlZmZlbnMgKGhlZnRpZykgPGphbi5zdGVmZmVuc0BsdG5nbG9iYWwuY29tPoiQBBMWCAA4FiEEov86NqqlZlQQkGSrGYAviw1w/DAFAl65R0ACGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQGYAviw1w/DBHTAD+PNwiUfbLSXEAJJpHArw5CT2sP7k1Yy6X2yK+R4dJkHUBALF5qQlbVfiPskk09bmNrN6VRpxFkXF/NOF5mElKMd4AtDZKYW4gQWxleGFuZGVyIFN0ZWZmZW5zIChoZWZ0aWcpIDxoZWZ0aWdAYXJjaGxpbnV4Lm9yZz6IkAQTFggAOBYhBKL/OjaqpWZUEJBkqxmAL4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rVGo=5-bksCVyKE28+FAMUOKH6g@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <f31c3d78-11de-4aac-81d7-c061916a9108@laker.email> <CAH+w=7YepkrZ1EYkovCvH-Qib4LCqFMGaw+j3EG8Cn3bTaE+XQ@mail.gmail.com> <e3adbc41-1cba-46d7-99a7-552a14882c59@laker.email> <CAH+w=7YYuFa71r4c3XKZgrgsMEy9_ifQeMjYMBsOGQtM0qEhJQ@mail.gmail.com> <CAH+w=7bcBOGxYzVYSxaNu_8hEE2mtL7GS0vbAjWfQrYs2R1juA@mail.gmail.com> <6f0cc0e8-665f-4c90-ba6e-6180ebcf9d60@laker.email> <CAH+w=7YtPvL6odikmzyUg067DFd3cMhP-X1BwyTOkG7qO8x5vg@mail.gmail.com> <bc503217-55c8-4577-84b7-19853fa45d03@laker.email> <CAH+w=7Zi3-HV3EUSommNJbrDQSd5H6aOttWjJ0DejyreGUeGGQ@mail.gmail.com> <CAH+w=7ae_dBPXdkzOYTy8w3rVGo=5-bksCVyKE28+FAMUOKH6g@mail.gmail.com>
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