You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PowerShell v6.1.0-preview.3 on macOS - PowerShell.app does not start PowerShell #7074
Yes, invoking pwsh-previewdirectly 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.
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?
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).
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).
Activity
MaximoTrinidad commentedon Jun 15, 2018
I got Preview.3 working on my MacOS.
mklement0 commentedon Jun 17, 2018
Maximo Trinidad (@MaximoTrinidad):
Yes, invoking
pwsh-previewdirectly works as intended, but Najeeb Anwer (@najeebanwer) is referring to the.shfile that is part of the/Applications/PowerShell.appmacOS application bundle.What it should be invoking is:
Instead, it invokes:
That is, it invokes an installed released Powershell version (if present), not the preview version.
najeebanwer commentedon Jun 17, 2018
Michael Klement (@mklement0) 👍
Precisely. Thanks.
mklement0 commentedon Jun 17, 2018
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.appbundle, alongside/Applications/PowerShell.app?najeebanwer commentedon Jun 17, 2018
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).
mklement0 commentedon Jun 17, 2018
Given that
pwsh-previewwas specifically introduced to allow installation alongside regular releases (pwsh), it makes sense to me to mirror this distinction in separate.appbundles.This would obviate the need to decide whether the single
/Applications/PowerShell.appbundle 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).najeebanwer commentedon Jun 17, 2018
Michael Klement (@mklement0): I agree.
MaximoTrinidad commentedon Jun 18, 2018
Thanks for the explanation!
:)
Fix macOS launcher app to allow release and preview versions. (#7306)
Fix macOS launcher app to allow release and preview versions. (PowerS…