Skip to content

Git Bash: prioritize cygwin binaries in PATH #2030

Closed
@mcandre

Description

@mcandre

Git Bash should always order the cygwin binaries earlier than Windows binaries, as far as bash scripts see the PATH, so that common script utilities like find and mkdir don’t expand to the wrong binaries and break syntax. Out of the box, bash.exe is limited to running generic shell code and only binaries that do not conflict with Windows binaries.

Outside of bash script contexts, it is still good to allow users to choose whether and what order Git Bash ends up on PATH. But within a bash.exe context, we should probably do the right thing so that 90% of bash scripts can continue running UNIX-like external apps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions