Date: Tue, 13 Sep 2022 09:46:54 +0200 From: Michael Gmelin <grembo@freebsd.org> To: Michael Schuster <michaelsprivate@gmail.com> Cc: Michael Gmelin <grembo@freebsd.org>, freebsd-fs@freebsd.org Subject: Re: ls on ZFS showing unexpected directory content Message-ID: <20220913094654.274a3a95.grembo@freebsd.org> In-Reply-To: <CADqw_g%2Bjit0kXUriftYZBGYiPH0muM01GoNO_bKcWaaDnhVi%2BA@mail.gmail.com> References: <20220912111915.12a90106.grembo@freebsd.org> <CADqw_g%2Bjit0kXUriftYZBGYiPH0muM01GoNO_bKcWaaDnhVi%2BA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 12 Sep 2022 11:23:53 +0200 Michael Schuster <michaelsprivate@gmail.com> wrote: > On Mon, Sep 12, 2022 at 11:19 AM Michael Gmelin <grembo@freebsd.org> > wrote: > > > > Hi, > > > > Situation: > > - shell is bash > > - Root container mounted on zroot > > - extra container mounted on /extracontainer, on USB drive which > > spins down on idle > > - cd /extracontainer > > - cd subdir (takes a while, as drive has to spin up - getting bored, > > hitting CTRL-C) > > - prompt still shows /extracontainer, but `ls` now shows content of > > /extracontainer/subdir > > - cd .. && cd extracontainer > > - Now `ls` shows content of /extracontainer > > > > Expected behavior? > > on the face of it, this looks as if the shell's prompt wasn't being > updated. What do '/bin/pwd' and builtin 'pwd' print? My thoughts as well. It's easily reproducible, in-built `pwd` and `/bin/pwd` both show the correct path, the PWD environment variable shows the wrong path (and, consequently, OLDPWD as well as the command prompt). > > For completeness: which version of FreeBSD? 13.1-STABLE last updated September 2nd. Cheers > > regards > Michael > > > > > Thanks > > Michael > > > > -- > > Michael Gmelin > > > > -- Michael Gmelin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220913094654.274a3a95.grembo>