From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: `pwd -P` with systemd-homed causes inconsistent cwd state
Date: Mon, 20 Nov 2023 23:23:01 +0100 [thread overview]
Message-ID: <3c29995640fb4f3ceae0a96f72fc48c5ea51cfd7.camel@archlinux.org> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2023-11-20 22:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-21 3:18 Kyle Laker
2023-10-21 4:05 ` Bart Schaefer
2023-10-21 16:26 ` Kyle Laker
2023-10-22 18:59 ` Bart Schaefer
2023-10-31 3:46 ` [PATCH] " Bart Schaefer
2023-11-02 2:54 ` Kyle Laker
2023-11-03 4:28 ` Bart Schaefer
2023-11-05 14:16 ` Kyle Laker
2023-11-05 16:17 ` Bart Schaefer
2023-11-05 21:10 ` Bart Schaefer
2023-11-20 22:23 ` Jan Alexander Steffens (heftig) [this message]
2023-11-23 17:53 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3c29995640fb4f3ceae0a96f72fc48c5ea51cfd7.camel@archlinux.org \
--to=heftig@archlinux.org \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).