globMatch: distinguish double ** (recursive) vs single *

Timothee Cour thelastmammoth at gmail.com
Sun Oct 20 18:55:28 PDT 2013


To clarify, this is in agreement with D docs, but I'm not sure this is what
makes most sense.


On Sun, Oct 20, 2013 at 6:49 PM, Timothee Cour <thelastmammoth at gmail.com>wrote:

> I was hoping std.path.globMatch distinguished single * (non-recursive) vs
> double ** (recursive)
> so that:
> "a1/a2/a3.txt".globMatch("*/a3.txt") returns false
> "a1/a2/a3.txt".globMatch("**/a3.txt") returns true
> as in good shells (and python 3.4 IRRC) but it's not the case.
>
> Is that intended?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20131020/72aac2fe/attachment-0001.html>


More information about the Digitalmars-d-learn mailing list