Skip to content

feat: brace expansion #242

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: brace expansion #242

wants to merge 2 commits into from

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Feb 6, 2025

I am looking into two issues:

{1..5} should expand to 1 2 3 4 5, also in word parts. This already works for globs in deno-task-shell, so it's an extension. Should follow the rules of bash (first brace extension, then globs, for example).

"linux-64" == linux* should use pattern matching (and not glob expansion). If a glob is detected on the right hand side of a binary operation like this, then it's used as a pattern to evaluate against the string on the left hand side. We can just use the glob that is already in use for this, but we need to prevent the current expansion and return a pattern.

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.

1 participant