[erlang-patches] Support ** for recursion in filelib:wildcard

Björn Gustavsson bgustavsson@REDACTED
Wed Mar 14 15:21:33 CET 2012


On 3/14/12, José Valim <jose.valim@REDACTED> wrote:
> Here is an updated patch for ** support in filelib:wildcard().
>
> git fetch git://github.com/josevalim/otp.git fixed_double_star
>

Thanks! You have fixed everything I asked you to fix.

I noticed one more thing that I missed the first time:
There is no need to add ?line macros as exceptions
in R15 have line numbers. I have amended your commit
and done that change.

Also, I have updated the commit message to mention
that wildcards work like in Bash 4 (since that can be
useful to know for someone who browses the commit
history in the future):

    Allow ** in filelib:wildcard

    Two adjacent * used as a single pattern will match
    all files and zero or more directories and subdirectories,
    as in Bash 4. See:

       http://www.gnu.org/software/bash/manual/bashref.html

    Search for "globstar".

I will ask Gustav to include the version of the branch with
those changes, so there is no need for you to submit an
updated branch.

We will now let your branch run in our daily builds for a
couple of days.

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-patches mailing list