Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [bug] Globbing fails with execute-only directory in path
- X-seq: zsh-workers 42561
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Tatsuyuki Ishi <ishitatsuyuki@xxxxxxxxx>
- Subject: Re: [bug] Globbing fails with execute-only directory in path
- Date: Thu, 29 Mar 2018 07:37:07 +0100
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BqgPAHCAheXFAe0uSoBp07WUKYqy0yy+putDAQv4Oo8=; b=ukSIoIijO2T7kB/DAnRvr87lHRaPAsQtswrLdpyP0zvmodL89+K+hx07TBCHTocYFM +y2uc+IdkcHVzeEjn2lOVDYDWKFfzHSbSYWH8WjCRO+L9uk6rAQifJSUwdbodidFsHpv yWBDZLl6tzaOTixLPl0d1hC+BqQS9VXMkEr9Eli6pIvfx0Lm7A2j3JF3dmoKGVNNdU3G QKUqEl7Rdqqx+SkDpuEAke3v0vXjKgUM/gpZU+mCAiVNqGkMcDxg2/R8yrXjITEY/VAK bz7tO4l10XdTkRrI9/Ns2sQ5SDljN7doBYEtQnTGtNJsaOVXFt4Tg5ycrPSZJdi4QCp/ 1uJw==
- In-reply-to: <CANqewP0_t3btJ0w8Mhs9XRE3N5pWKZrxtf9+UC4WR+0fOzxODg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: Tatsuyuki Ishi <ishitatsuyuki@xxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Mikael Magnusson <mikachu@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CANqewP0Rb=yKiKzME3Xg6DX9H75a6-y=sH4QcoArTu8zsbmNgQ@mail.gmail.com> <CAHYJk3TzH7tyv4wdXgCCiAUctto_b8+-P95EAmrLbgtf19c+TQ@mail.gmail.com> <CAH+w=7aSHnmmpaj1drNVNGtgPqFUmDMgTSVxcFeggrbvSdMepw@mail.gmail.com> <CANqewP0_t3btJ0w8Mhs9XRE3N5pWKZrxtf9+UC4WR+0fOzxODg@mail.gmail.com>
2018-03-29 09:00:27 +0900, Tatsuyuki Ishi:
> I've found a setting difference for this: nocaseglob needs to be set
> to reproduce. Tried on bash too and it still works with nocaseglob.
[...]
That reveals another difference between zsh and bash here (or
more like between bash and other shells):
$ mkdir -p a/b/cd
$ zsh -o nocaseglob -c 'echo a/B/c*'
a/b/cd
$ yash -o nocaseglob -c 'echo a/b/C*'
a/b/cd
$ ksh93 -c 'echo ~(i)a/b/C*'
a/b/cd
$ bash -O nocaseglob -c 'echo a/B/c*'
a/B/c*
yash manages to find a/b/cd here after I remove search
permission to "a":
$ chmod 111 a
$ ksh93 -c 'echo ~(i)a/b/C*'
~(i)a/b/C*
$ yash -o nocaseglob -c 'echo a/b/C*'
a/b/cd
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author