Possible solution for name conflicts

Open
#113 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the conflict example in README.md at the linked section and compare it with the proposed cmd/conhost handling of C:\Windows\System32\expand.exe. Clarify how encoded paths, PATH-based POSIX commands, and a bash.exe entry point should work together, then define tests or observable command behavior that demonstrate legacy .bat/.cmd files remain unaffected.

Written by the indexing model from the issue text.

Description

E-needs-discussion

As an example, the readme mentions conflicts:
https://github.com/microsoft/coreutils/blob/bc282d5c349fab94bb769da75a6e91bd9032f784/README.md?plain=1#L61

The expand command appears to be a utility located in:
C:\Windows\System32\expand.exe

Solution: Ignore variables and encode the file address inside the source code of cmd/conhost.
Example: %SystemRoot%\System32\expand.exe

Any legacy *.bat or *.cmd file is executed by cmd/conhost, without breaking anything.
Newer shells can use posix expand by calling it through the PATH variable set to a different directory.

In this case, it would also be useful to create a bash.exe file that executes sh scripts, uses bash syntax, and only calls these coreutils.

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.