237dmitry

Results 331 comments of 237dmitry
trafficstars

I use [gsudo](https://github.com/gerardog/gsudo) on Windows. It can elevate script-blocks, create gsudo cache to avoid pressing button in UAC dialog.

> on linux One way or another, under the hood there will still be the same sudo|doas, and they only understand executable files.

`$EnabledExperimentalFeatures` is not `string[]`. That is why wrong comparing: ![Screenshot 2023-01-19 105601](https://user-images.githubusercontent.com/78153320/213385977-48eb4a6d-3fc6-4899-81c7-3391e2d936ca.png)

In 7.3.1 (Linux) it returned error ``` $ [System.Collections.Generic.IEnumerable] 42 InvalidOperation: Unable to find type [System.Collections.Generic.IEnumerable]. $ [System.Collections.Generic.IEnumerable[int]] [int[]] 42 42 ```

`Get` is similar to wget ))

Looked in 5.1 -- the same. Works if: ``` 1..3 | & { (Write-Output $input) } 1..3 | & { (Write-Output $input) | grep ^ } ```

> so you can use that as a workaround As you noted `$input` works without workaround. It's strange to use this construction. I would rather use `$input | Write-Host`.

> this issue isn't about what you would rather use or whether there are other solutions. I did not intend to offer you anything... Just showed under what conditions it...

Private option exists to make variable not visible in child scope ``` private: - Specifies that the name is Private and only visible to the current scope. Note: private is...

> And what? Why the behaviour is different for the one and SAME operator? Where are the same operations? ``` # parent scope switch (# parent scope) { { #...