-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ErrorActionPreference
doesn't affect stderr output for native commands
#6466
Comments
I think what needs to be said should be a bit more detailed on the user impact even though @daxian-dbw's content is technically correct:
|
This information should eventually also be incorporated into the proposed conceptual help topic about calling external (native) executables - see #5152. |
Just for Record and clarity, as of right now, this is an experimental feature and should be documented as such correct @daxian-dbw , @SteveL-MSFT ? |
Speaking of, @SteveL-MSFT: Can we consider implementing this as a straight bug fix? The current behavior is useless and counterintuitive: If I execute |
* This adds information about new ErrorActionPreference behavior in PowerShell 7.1 * Revert "This adds information about new ErrorActionPreference behavior in PowerShell 7.1" This reverts commit 8b0672d. * This adds information about new ErrorActionPreference behavior in PowerShell 7.1 * Updates for PR * PR updates * Update for PR
Summary of the new document or enhancement
The PR PowerShell/PowerShell#13361 made a breaking change that
$ErrorActionPreference
doesn't affect stderr output for native commands.Also the error records generated from the stderr output of native commands are not put in
$Error
and variable specified by-ErrorVariable
.$ErrorActionPreference
to not affect stderr output PowerShell/PowerShell#13361Description of what changed
The text was updated successfully, but these errors were encountered: