Skip to content

Possible solution for name conflicts #113

@ethanparker436

Description

@ethanparker436

As an example, the readme mentions conflicts:

| `expand` | 🛑 | 🛑 | Conflicts with the built-in DOS command |

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-discussionNeeds discussion between maintainers.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions