237dmitry

Results 330 comments of 237dmitry
trafficstars

> Are the words «operator» and «operation» synonymous? The operator performs operations. The question is exactly where. Why do you think that a variable with `private` option should be visible...

> I asking in what the child scope is doing there? This was always... ![Screenshot 2022-12-18 132037](https://user-images.githubusercontent.com/78153320/208293005-127561a7-3fdd-413e-9530-94c4f4395fb3.png)

> According to icacls.exe The issue is why `New-Item` removes symlink if it cannot replace an existing one. It turns out that the symlink is first deleted and only after...

> Deleting symbolic links is uncontrolled. I think it would be better if such cmdlets call UAC automaticaly. As it does [gsudo](https://github.com/gerardog/gsudo?ysclid=ld9267i2w1313459343) (C#)

I don't understand the benefit of your feature request, but you can set "private" visibility for script variables: ```powershell # script.ps1 Set-Variable -Name 'name' -Value 'private' -Visibility 'Private' Get-Variable -Scope...

Ok, I understood. This is for script debugging.

This is not problem of symbolic link itself but the name of file. With ps1 extension scripts and their symlinks working in pwsh and bash as expected: ```powershell $ dir...

```powershell $ gi ./foo.bar/ | ft Name, BaseName, Extension Name BaseName Extension ---- -------- --------- foo.bar foo.bar $ gi ./foo.bar | ft Name, BaseName, Extension Name BaseName Extension ---- --------...

In my opinion it works pretty fast: ```powershell $ Get-Process | Export-Csv -path "o.csv" $ (Get-History -Count 1).Duration.TotalMilliseconds 411.0004 $ (Import-Csv ./o.csv | Get-Member -MemberType NoteProperty).Count 69 $ (Get-Content ./o.csv).Count...

> this is not the same as the original posters environment I thought about this aspect. But I can’t test on Windows (replaced it with Linux). I posted it just...