-
Notifications
You must be signed in to change notification settings - Fork 8.1k
-Verbose should not override $ErrorActionPreference #5113
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
-Verbose should not override $ErrorActionPreference #5113
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is only for Verbose;
however, original issue says that it was approved for both: Verbose and Debug : "Committee agrees that we should fix this so that -ErrorAction works correctly and not overridden by -Debug or -Verbose".
Should this change be done for Debug as well?
|
@anmenaga that's a fair point about |
|
@anmenaga can you review again? |
| Path = "$testdrive\test.txt"; | ||
| Confirm = $false | ||
| } | ||
| New-Item @params |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> $null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add
|
@adityapatwardhan can you review again? |
|
Is this likely to make it into the final for Powershell 6? |
|
@mintsoft This was merged to master so it will be in the release unless it needs to be reverted for some reason. |
Fix #2247