Skip to content

Conversation

@grantcooksey
Copy link
Contributor

When a glob is passed that targets multiple files, bash is expanding the wildcard before compgen is run, resulting in only one file getting passed to squawk. Quoting prevents bash from trying to expand the glob early.

For example, from the project root:

> compgen -G ./*.md                     
./CHANGELOG.md

and now with quoting

> compgen -G "./*.md"
./CHANGELOG.md
./README.md

This should fix #4

When a glob is passed that targets multiple files, bash is
expanding the wildcard before compgen is run, resulting in only
one file getting passed to squwak. Quoting prevents bash from trying
to expand the glob early.
Copy link
Owner

@sbdchd sbdchd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sbdchd sbdchd merged commit bf6f9d1 into sbdchd:main Dec 5, 2023
@chdsbd
Copy link
Collaborator

chdsbd commented Dec 5, 2023

I tagged a new version, v1.0.2 and updated the existing v1 tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot pass multiple files into action

3 participants