Skip to content

Use PATHEXT env var on Unix #7755

@iSazonov

Description

@iSazonov

On Windows PowerShell Core use file extentions from PATHEXT env variable to run the file as executable.
On Unix we ignore PATHEXT but it can be useful. (See #7697.)

From #7697 (comment)

@PowerShell/powershell-committeeTeam members are private reviewed this and it seems that $env:PATHEXT can provide utility on Unix systems if the user creates the environment variable. Example is if user has foo.py and wants PowerShell to execute foo, they can use this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Committee-ReviewedPS-Committee has reviewed this and made a decisionIssue-Enhancementthe issue is more of a feature request than a bugWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions