directory with :wild-inferiors doesn't descend subdirectories
Describe the bug
directory
with :wild-inferiors
doesn't descend all the sub
directories.
To Reproduce
Steps to reproduce the behavior:
- Start cmucl at the top of the source tree
- Run
(directory "src/**/objdef.lisp")
- This returns
NIL
Expected behavior
Since "src/compiler/generic/objdef.lisp" exists, I expected
directory
to find that file.
It seems that directory
only descends one level with
:wild-inferiors
, but I was expected all subdirectories to be
searched.
(directory "src/**/interr.lisp")
finds "src/code/interr.lisp"
correctly. It should also find "src/compiler/generic/interr.lisp"
too.
Clisp finds both files, and so does sbcl.
I think this is caused by %enumerate-directories
which doesn't
descend more than one level it seems.
Edited by Raymond Toy