Globbing Support #13

Closed
opened 2025-02-02 23:40:31 -07:00 by parker_macdonald · 2 comments

This is a pretty massive undertaking, this issue covers ALL globbing patterns:

Glob Meaning
* Matches 0 or more characters
? Matches precisely one character
[...] Matches specified characters in a set or in ranges
[^...] Negate the set defined in square brackets
[!...] Negate the set defined in square brackets
{p1,p2,...} Match/expand each globbing pattern one by one

(This was taken directly from the CSCI210 notes...)

This should probably involve some sort of tokenization instead of a bunch of string compares.

This is a pretty massive undertaking, this issue covers ALL globbing patterns: | Glob | Meaning | |---------------|----------------------------------------------------| | `*` | Matches 0 or more characters | | `?` | Matches precisely one character | | `[...]` | Matches specified characters in a set or in ranges | | `[^...]` | Negate the set defined in square brackets | | `[!...]` | Negate the set defined in square brackets | | `{p1,p2,...}` | Match/expand each globbing pattern one by one | (This was taken directly from the CSCI210 notes...) This should probably involve some sort of tokenization instead of a bunch of string compares.
Author
Owner

Should probably also add support for the ~ shortcut.

Should probably also add support for the `~` shortcut.
Ty was assigned by parker_macdonald 2025-09-16 15:17:19 -06:00
Author
Owner

done in #28, I only added *, other types of globs may be added eventually, but not today.

done in #28, I only added *, other types of globs may be added eventually, but not today.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: parker_macdonald/rash#13
No description provided.