Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dot at the beginning of a filename should only be matched by a pattern that starts with a dot literal #328

Open
grisenti opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@grisenti
Copy link

For example running

echo [[:punct:]]*

in brush and bash produces different results. If I run it inside the repository I get:

  • brush:
.cargo .cliffignore .config .devcontainer .git .github .gitignore .idea .lycheeignore .vscode
  • bash:
[[:punct:]]*
@reubeno reubeno added the bug Something isn't working label Jan 17, 2025
@reubeno
Copy link
Owner

reubeno commented Jan 17, 2025

Good catch, @grisenti . It looks like the dotglob shell option can toggle this behavior in bash, and there's also some special-casing needed for . and ...

If you happen to have any interest in contributing toward a fix for this, let us know! (I'm happy to provide pointers if helpful.) And if not, we'll get to this when we get a chance. Either way, thanks for reporting this and providing clear test cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants