Skip to content

Commit

Permalink
Fix PSNativeCommandUseErrorActionPreference default value (#11026)
Browse files Browse the repository at this point in the history
Fixes #10752 (was partially fixed in #10757)
  • Loading branch information
darthwalsh authored Apr 13, 2024
1 parent 7d34367 commit f57f2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/docs-conceptual/learn/experimental-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ controls how native commands errors are handled in PowerShell. This allows nativ
to produce error objects that are added to the PowerShell error stream and may terminate execution
of the script without extra handling.

`$PSNativeCommandUseErrorActionPreference` is set to `$true` by default. With the preference set to
`$PSNativeCommandUseErrorActionPreference` is set to `$false` by default. With the preference set to
`$true` you get the following behavior:

- When `$ErrorActionPreference = 'Stop'`, scripts will break when a native command returns a
Expand Down

0 comments on commit f57f2f6

Please sign in to comment.