Skip to content

Feature Request: Create a preference variable to turn Off/On path normalization #3118

Closed

Description

@arebee

I want to tell PowerShell to leave my "/" path delims alone when I am on Windows and "\" alone when I am on *nix. Perverse I know!

Activity

  1. changed the title [-]Create a preference variable to turn Off/On path normalization[/-] [+]Feature Request: Create a preference variable to turn Off/On path normalization[/+] on Feb 9, 2017
  2. thezim commented on Feb 9, 2017

    @thezim
    Contributor

    I had an similar issue today where I used Split-Path on a URL stem on Windows and it autocorrected the path delimiter. Would be nice if there was a switch for this particular cmdlet to ignore translation.

    PS C:\> Split-Path -Parent -Path /one/two
    \one
  3. iSazonov commented on Feb 10, 2017

    @iSazonov
    Collaborator

    We should have both:

    1. Global preference variable with default value a platform depended.
    2. Switch -Normalize or parameter -Style [Windows | Unix]
      What cmdlets is affected by the issue?
  4. thezim commented on Feb 11, 2017

    @thezim
    Contributor

    Ilya (@iSazonov) -Style [Windows | Unix] make more sense from a discovery point of view. Also -Normalize could get confusing if you have preferenced something else already, better to avoid the ambiguity.

  5. iSazonov commented on Feb 12, 2017

    @iSazonov
    Collaborator

    We should have switches (in different parameter sets):
    -StyleWindows - default true on Windows
    -StyleUnix - default true on Linux and IOS.

    And we should consider remoting and remote sessions Windows -> Unix, Unix -> Windows. Is it possible and reasonable to make implicit conversions?

  6. arebee commented on Feb 12, 2017

    @arebee
    Author
  7. added this to the milestone on Mar 5, 2017
  8. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  9. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  10. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  11. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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