Skip to content

PowerShell preview executables no longer at /usr/[local/]bin/pwsh on *nix #1361

Closed
@rjmholt

Description

@rjmholt

PowerShell 6.1.0-preview.3 will install its executable as pwsh-preview as of the upcoming release.

We will need to work out how to handle this.

@s2p16 reported this and a workaround here: PowerShell/PowerShell#6132 (comment).

Essentially, for now, the best solution is to specify a new powerShellExePath:

{
  "powershell.powerShellExePath": "/usr/bin/pwsh-preview"
}

Another alternative would be to use @rkeithhill's EXE path feature:
#1270

But we should also fix this so that it works out of the box. Since preview and ordinary releases are now allowed side-by-side, we should figure out which we prefer if both are present.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions