zsh-workers
 help / color / mirror / code / Atom feed
From: Andrew Main <zefram@tao.co.uk>
To: hzoli@cs.elte.hu (Zoltan Hidvegi)
Cc: zsh-workers@math.gatech.edu
Subject: Re: PATCH: misc glob fixes
Date: Mon, 11 May 1998 10:36:47 +0100 (BST)	[thread overview]
Message-ID: <199805110936.KAA22602@taos.demon.co.uk> (raw)
In-Reply-To: <199805092217.RAA02878@hzoli.home> from "Zoltan Hidvegi" at May 9, 98 05:17:07 pm

Zoltan Hidvegi wrote:
>First, many systems ignore trailing slashes on filenames.  As a result */
>will match all files instead of just directories as required by common
>sense and the POSIX standard.  The solution is to stat/lstat/access
>`filename/.' instead of `filename/'.

But "filename/." can't be statted if the directory is not searchable
by the zsh process, whereas POSIX would require the glob to succeed.
It would be better to stat "filename/" and test that the result has
type directory.

-zefram


  reply	other threads:[~1998-05-11 10:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-09 22:17 Zoltan Hidvegi
1998-05-11  9:36 ` Andrew Main [this message]
1998-05-11 15:49   ` Zoltan Hidvegi

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=199805110936.KAA22602@taos.demon.co.uk \
    --to=zefram@tao.co.uk \
    --cc=hzoli@cs.elte.hu \
    --cc=zsh-workers@math.gatech.edu \
    /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).