Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unreadable directories aren't included in glob expansion
- X-seq: zsh-users 24622
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Unreadable directories aren't included in glob expansion
- Date: Thu, 09 Jan 2020 16:16:09 +0000
- In-reply-to: <CAH+w=7bhY0omAjp8ngGKtx8t3mG65L9KmnVfZEFLfwo6tXEiKA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CGME20200109154313eucas1p13b2e5465f21d059ea08537012e140236@eucas1p1.samsung.com> <20200109154145.rqksfenozx6745rn@tarpaulin.shahaf.local2> <1578585101.6028.13.camel@samsung.com> <CAH+w=7bhY0omAjp8ngGKtx8t3mG65L9KmnVfZEFLfwo6tXEiKA@mail.gmail.com>
Bart Schaefer wrote on Thu, 09 Jan 2020 16:10 +00:00:
> On Thu, Jan 9, 2020, 7:52 AM Peter Stephenson <p.stephenson@xxxxxxxxxxx>
> 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.
But I'm not doing completion; I'm just echoing the result of the glob, as in «sudo ls */».
Messages sorted by:
Reverse Date,
Date,
Thread,
Author