rust-lang / rust-lang/glob

support '~' as shortcut for home directory

Open
#149 0 comments 1 reaction 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

In UNIX systems, ~ at the beginning of a pattern matches the home directory of the current user.
It would be nice if glob supported this as well.

NB: as a matter of fact, ~ alone matches the current user's home, and ~username matches the home directory of username. Ideally, glob would support both.

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

No file or test is named in the issue. Start by locating the path-pattern expansion entry point and existing tests for Unix-style patterns, then determine how ~, ~username, and ordinary paths should be distinguished. Done means the requested home-directory shortcuts work without breaking existing glob behavior, with tests covering the supported forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.