Michael Klement
Michael Klement
@ericwj: This is a general issue: The `-ErrorAction` common parameter applies to _nonterminating_ errors only; it has no effect on _statement-terminating_ errors, which are what `Invoke-WebRequest` now reports in the...
While the simple vs. advanced functions dichotomy is somewhat unfortunate, making _all_ functions/scripts advanced ones would be a massively breaking change, given that advanced functions do not support `$args`: ```powershell...
@dwtaber, the crux of the issue is that advanced functions do not support _unbound_ arguments, so the problem isn't `$args` per se, but the fact that - by design -...
Good to know about `-Force`, and you're right that it's not about _calculated_ properties per se (though most of the out-of-band-formatted types have no properties, so using a calculated one...
v7.3 introduced a breaking change with respect to the - previously fundamentally broken - handling of (embedded) `"` chars. in arguments passed to _external programs_. To make the previous workarounds...
This issue isn't specific to `Invoke-WebRequest` and boils down to the fact that you cannot save file data to a _directory_ path. You can provoke the symptom as follows: `'hi'...
The same inconsistent behavior also has less obvious manifestations: #7005 and #7010 The question is: How should this inconsistency be resolved? It comes down to this: ```powershell Copy-Item -Recurse ```...
@Aculeo, you can ease the pain a bit by replacing the `if` statement with `$null = New-Item -Force -ItemType Directory $TargetPath`, which, thanks to `-Force`, is a quiet no-op if...
@ninmonkey, yes, PowerShell is regrettably permissive when it comes to interchangeable use of quoting characters - [this Stack Overflow answer](https://stackoverflow.com/a/55053609/45375) lists all equivalents (including for whitespace and hyphen-like chars.) Personally,...
@tig: * `tput reset` resets the terminal to its default state. * Yes, such a call shouldn't be necessary - Terminal.Gui should restore the previous state - though I'm not...