Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Done
-
None
-
None
-
-
Windows
-
1
-
Windows 2019-01-23, Windows 2019-01-30, Windows 2019-02-06, Windows 2019-02-13
-
Needs Assessment
Description
In order to support PowerShell core we need to be able to dynamically search for the pwsh binary.
pwsh does have some default locations;
https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-windows?view=powershell-6
However it could also be installed anywhere manually
This ticket will track the work make sure the path can be discovered dynamically in the default locations, but also from the path
e.g.
exec { 'do something':
|
command => 'Write-Host $PSVersionTable',
|
path => 'C:\Program Files\PowerShell\6.1',
|
provider => pwsh,
|
require => File['testfile'],
|
}
|
This will also include some acceptance or unit tests for this behaviour. This should also be supported cross platform
Attachments
Issue Links
- blocks
-
MODULES-8358 Add PowerShell Session Manager for pwsh in the PowerShell module
-
- Resolved
-
- is blocked by
-
MODULES-8357 Add cross-platform support for pwsh in the PowerShell module
-
- Resolved
-
- relates to
-
MODULES-8307 powershell : SPIKE figure out options for supporting powershell and powershell core
-
- Resolved
-