zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: [bug] Globbing fails with execute-only directory in path
Date: Wed, 28 Mar 2018 18:54:26 +0200	[thread overview]
Message-ID: <CAHYJk3TzH7tyv4wdXgCCiAUctto_b8+-P95EAmrLbgtf19c+TQ@mail.gmail.com> (raw)
In-Reply-To: <CANqewP0Rb=yKiKzME3Xg6DX9H75a6-y=sH4QcoArTu8zsbmNgQ@mail.gmail.com>

On Wed, Mar 28, 2018 at 3:35 PM, Tatsuyuki Ishi <ishitatsuyuki@gmail.com> wrote:
> Globs fail to work when one of the directory component is execute-only
> (not readable). This is the case on Android (/data/data/ is execute
> only so each app can be isolated).
>
> Reproduction steps:
>
> mkdir -p data/app
> chmod 111 data
> touch data/app/{a,b}
> ls data/app/*
>
> Actual results (zsh 5.4.2):
>
> zsh: no matches found: data/app/*
>
> Expected results (bash):
>
> data/app/a  data/app/b

Can't reproduce here. I've used this method for a few years to protect
some directories against accidental rm -rf so i know it works with
older zsh versions than mine too.

-- 
Mikael Magnusson


  reply	other threads:[~2018-03-28 16:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28 13:35 Tatsuyuki Ishi
2018-03-28 16:54 ` Mikael Magnusson [this message]
2018-03-28 17:00   ` Bart Schaefer
2018-03-29  0:00     ` Tatsuyuki Ishi
2018-03-29  6:37       ` Stephane Chazelas
2018-03-29 10:23         ` Stephane Chazelas

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=CAHYJk3TzH7tyv4wdXgCCiAUctto_b8+-P95EAmrLbgtf19c+TQ@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=ishitatsuyuki@gmail.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).