dundalek/closh

Glob not properly expanding in JVM version

dundalek opened this issue · 1 comments

Running following from withing the closh source directory does not correctly expands (in JVM versin, nodejs version works fine).

cd src && echo ../*.json

We are using clj-glob library. Maybe we could try glob implementation provided by Java using FileSystem.getPathMatcher in combination with Files.walkFileTree.

Ideally I would like to see some programming language agnostic test suite, that could compare various implementations. One such format could be TAP protocol

There is an implementation in Julia which describes itself as POSIX spec compliant under IEEE Std 1003.1, 2004 Edition (Open Group Base Specifications Issue 6): https://github.com/vtjnash/Glob.jl

More resources:
http://man7.org/linux/man-pages/man3/glob.3.html
http://man7.org/linux/man-pages/man7/glob.7.html

@dundalek I've opened PR to address this issue #164.

Please review.

Some tests are still failing locally, looking into this.