Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: misc glob fixes
- X-seq: zsh-workers 3964
- From: Andrew Main <zefram@xxxxxxxxx>
- To: hzoli@xxxxxxxxxx (Zoltan Hidvegi)
- Subject: Re: PATCH: misc glob fixes
- Date: Mon, 11 May 1998 10:36:47 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199805092217.RAA02878@xxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author