Michael Klement

Results 1234 comments of Michael Klement

@dlwyatt: Amen to that. I was in the middle of composing the following: The point is that if _compiled_ cmdlets respect preference variables set in the caller's scope, it's reasonable...

> Keep in mind one big difference between binary cmdlets and functions - binary cmdlets are rarely implemented in terms of PowerShell functions or other cmdlets. Users needing to be...

> Users of a command aren't aware of the implementation and do have the expectation of reasonable output. No argument there. And let's not forget predictable behavior, which brings us...

> Also note that the equivalence of -ErrorAction Stop and setting the preference variable could be thought of as an implementation detail and is considered a bug by some people...

The recent #6556 is a more pernicious manifestation of the problem discussed here: Because CDXML-based cmdlets are seemingly _advanced functions_ rather than binary cmdlets, the **functions in the `NetSecurity` module...

@StevenBucher98: PSReadLine has control over how how it invokes `Get-Help`, and the fact that it uses `Get-Help` at all is an _implementation detail_. It should exercise that control in order...

I haven't looked at other cmdlets, but here's proof that it works in principle: ```powershell function foo { param([Parameter(Mandatory)] [string[]] $Pattern, [Parameter(ValueFromPipeLine)] $InputObject) process { [pscustomobject] @{ Pattern = $Pattern;...

An example is the following URL (taken from the linked Stack Overflow post): https://downloads.sourceforge.net/project/boost/boost-binaries/1.74.0/boost_1_74_0-msvc-14.2-64.exe is a _direct download_ when you target it with `curl`, but with the web cmdlets, due...

Indeed: what was download was an _HTML page_, not an `.exe` file, which you can easily verify by opening the output file in a text editor. The true file size...