Describe The Bug
In a directory that has a recursive symbolic link, the duckscript glob_array command performs a cyclic recursion.
To Reproduce
- Create a symbolic link that points at its parent directory
- Use
glob_array
Commentary
This is a bug in glob, not duckscript, but duckscript isn't completely off the hook because the glob crate has had an issue open since 2017 (rust-lang/glob#62), and a PR to fix it, but the crate hasn't been updated in several years. There are other glob-like crates in the ecosystem now with better options, including ones to ignore symlinks. It might be worthwhile migrating to one of them.
Describe The Bug
In a directory that has a recursive symbolic link, the duckscript
glob_arraycommand performs a cyclic recursion.To Reproduce
glob_arrayCommentary
This is a bug in
glob, notduckscript, butduckscriptisn't completely off the hook because theglobcrate has had an issue open since 2017 (rust-lang/glob#62), and a PR to fix it, but the crate hasn't been updated in several years. There are other glob-like crates in the ecosystem now with better options, including ones to ignore symlinks. It might be worthwhile migrating to one of them.