Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Passing "-ExecutionPolicy Bypass" throws "Aborted" #2742

Copy link
Copy link
@Daniel15

Description

@Daniel15
Issue body actions

I;m trying to update the Jenkins PowerShell plugin to handle Linux as well as Windows. At the moment, it passes -ExecutionPolicy Bypass as a command line parameter. While testing, I noticed that this causes PowerShell 6.0 on Linux to throw an "Aborted" error and exit with error code 134:

daniel@debian-test:/tmp$ echo "Write-Output 'Hello World'" > test.ps1
daniel@debian-test:/tmp$ powershell ./test.ps1
Hello World
daniel@debian-test:/tmp$ powershell -ExecutionPolicy Bypass ./test.ps1
Aborted
daniel@debian-test:/tmp$ echo $?
134

I know that script signing currently isn't implemented for non-Windows platforms, but perhaps it could just ignore the option?

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   3.0.0.0
GitCommitId                    v6.0.0-alpha.12
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Resolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.