chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: It would be nice if glob "/*/*" worked


From: Matt Welland
Subject: Re: It would be nice if glob "/*/*" worked
Date: Fri, 29 Nov 2019 09:33:19 -0700



On Fri, Nov 29, 2019 at 2:59 AM Tim via <address@hidden> wrote:
Hi Matt,

Matt Welland writes:
> Supporting glob patterns at any level would be handy. I started to
> implement something which I've included below but before I complete it:

I like this idea too.  Just one thing: would it be possible to use the
double-asterisk ** instead of a single * to represent the directory
matching portion?  I.e.  /subdir/**/*.txt would find any file with a
name ending in .txt in any directory below /subdir. This is a pretty
common syntax for recursive globbing I think; at least I've seen it in
zsh, python and a few other places.

I don't understand the use or benefit of using ** for directories. Bash, perl and python all expand "*/c*" as I would expect. Can you send a pointer to the usage you are referring to?
 

Tim


--
--
Complexity is your enemy. Any fool can make something complicated.
It is hard to keep things simple. - Richard Branson.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]