Skip to content

PowerShell v6.1.0-preview.3 on macOS - PowerShell.app does not start PowerShell #7074

Closed

Description

on macOS, the PowerShell.app/Contents/MacOS/PowerShell.sh script does not invoke pwsh-preview; it incorrectly tries to invoke pwsh.

Activity

  1. MaximoTrinidad commented on Jun 15, 2018

    @MaximoTrinidad

    I got Preview.3 working on my MacOS.

    PS /Users/maxt> sw_vers                                                                                                 ProductName:    Mac OS X                                     
    ProductVersion: 10.13.5                                         
    BuildVersion:   17F77 
    

    macos_preview3_2018-06-15_12-34-57

  2. mklement0 commented on Jun 17, 2018

    @mklement0
    Contributor

    Maximo Trinidad (@MaximoTrinidad):

    Yes, invoking pwsh-preview directly works as intended, but Najeeb Anwer (@najeebanwer) is referring to the .sh file that is part of the /Applications/PowerShell.app macOS application bundle.

    What it should be invoking is:

    open /usr/local/bin/pwsh-preview

    Instead, it invokes:

    open /usr/local/bin/pwsh

    That is, it invokes an installed released Powershell version (if present), not the preview version.

  3. najeebanwer commented on Jun 17, 2018

    @najeebanwer
    Author

    Michael Klement (@mklement0) 👍
    Precisely. Thanks.

  4. mklement0 commented on Jun 17, 2018

    @mklement0
    Contributor

    Najeeb Anwer (@najeebanwer): Glad to hear we're on the same page.

    Now that I think about it: shouldn't the conclusion be that there should be a parallel /Applications/PowerShell-preview.app bundle, alongside /Applications/PowerShell.app?

  5. najeebanwer commented on Jun 17, 2018

    @najeebanwer
    Author

    Michael Klement (@mklement0): That sounds like a reasonable conclusion.
    However, since the PowerShell.app bundle is associated with a particular release, presumably it would be updated to invoke the correct PowerShell target (either pwsh or pwsh-preview).

  6. mklement0 commented on Jun 17, 2018

    @mklement0
    Contributor

    Given that pwsh-preview was specifically introduced to allow installation alongside regular releases (pwsh), it makes sense to me to mirror this distinction in separate .app bundles.

    This would obviate the need to decide whether the single /Applications/PowerShell.app bundle should be updated for preview versions as well (which currently doesn't happen, judging by the version on my disk still reflecting the latest official release, v6.0.2).

  7. najeebanwer commented on Jun 17, 2018

    @najeebanwer
    Author
  8. MaximoTrinidad commented on Jun 18, 2018

    @MaximoTrinidad

    Thanks for the explanation!
    :)

  9. added
    WG-Maintainers-Build
    on Jun 19, 2018
  10. added a commit that references this issue on Jul 20, 2018
    d9c570a
  11. added a commit that references this issue on Aug 6, 2026
    0b616d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-macOSResolution-FixedWG-Maintainers-Build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions