From: Bart Schaefer <schaefer@brasslantern.com>
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Unreadable directories aren't included in glob expansion
Date: Thu, 9 Jan 2020 08:10:50 -0800
Message-ID: <CAH+w=7bhY0omAjp8ngGKtx8t3mG65L9KmnVfZEFLfwo6tXEiKA@mail.gmail.com> (raw)
In-Reply-To: <1578585101.6028.13.camel@samsung.com>
[-- Attachment #1: Type: text/plain, Size: 520 bytes --]
On Thu, Jan 9, 2020, 7:52 AM Peter Stephenson <p.stephenson@samsung.com>
wrote:
>
> At a practical level, the difference may have arisen because a / not in
> a glob qualifier is usually present in order to select files within the
> directory, which won't work if the directory isn't readable. A glob
> qualifier, on the other hand, always applies to the final path segment.
>
I think this is exactly it. foo/<TAB> is like asking to select from among
the matches of foo/* and if foo is not readable, there are none.