On finishing the job of replacing system commands

Open
#138 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
rust

Research direction

Start by reading the issue’s discussion about replacement behavior from C:\Windows\System32 and follow the linked Microsoft report. No source files, tests, or entry points are named, so first locate the replacement mechanism and determine which commands are in scope. Done should address the System32 scenario without clobbering Windows\System32, with any required command replacements defined.

Written by the indexing model from the issue text.

Description

E-needs-discussion

As you probably noticed, the replacement mechanism doesn't work properly when the current directory is C:\Windows\System32 (which wouldn't be that bad if it weren't the default directory of an elevated command prompt).

I considered literally clobbering the commands in Windows\System32 so the coreutils commands would be found. This is not recommended due to servicing reasons.

Thus, I filed https://aka.ms/AA11lcib for the Windows side of it.

If Microsoft actually listens to me they'll move find into its own package so it can be uninstalled independently; but if not we may find ourselves in the position of rebuilding the replace and tree commands as well. Tree is trivial; if I knew Rust I could do so immediately. Replace is not.

Dominant language
Rust
Stars
5.2k
Forks
107
Avg merge
2d 19h
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

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.

More from microsoft/coreutils

All issues in microsoft/coreutils

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.