rust-lang / rust-lang/glob

`?` matches forward slashes

Open
#190 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
595
Forks
93
PR merge metrics
No merged PRs in 30d

Description

To my surprise, foo?bar matches foo/bar. Minimal repro: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=e47902dcb4aeee3ead794ff77b0cef04

This behavior doesn't match those of shells like bash or fish, as of my testing.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the linked Rust Playground minimal reproduction and compare the result with the documented shell-style matching behavior. Locate the wildcard matching entry point, add a regression test showing that ? does not match /, and run the repository test suite to confirm the corrected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.