Different behavior of SBCL and CLISP on 'directory' function
Posted: Sat Nov 21, 2009 5:26 am
Hello!
I have following directory structure:
.
./systems/s-xml
./systems/uffi
./systems/cdg
I want to get all entries under systems directory - a list of 3 items.
I call '(directory "systems/*.*")' from . to get the entries.
However, I get different results under sbcl and clisp:
under sbcl the function call works fine and return desired entries,
and under clisp the function call returns nil.
I tried to use make-pathname/merge-pathname, but they yield same results.
Which behavior is right? And if it is implementation dependent, what is the right way to do this?
I have following directory structure:
.
./systems/s-xml
./systems/uffi
./systems/cdg
I want to get all entries under systems directory - a list of 3 items.
I call '(directory "systems/*.*")' from . to get the entries.
However, I get different results under sbcl and clisp:
under sbcl the function call works fine and return desired entries,
and under clisp the function call returns nil.
I tried to use make-pathname/merge-pathname, but they yield same results.
Which behavior is right? And if it is implementation dependent, what is the right way to do this?