237dmitry

Results 330 comments of 237dmitry
trafficstars

You can temporary change full datetime format pattern: ```powershell [threading.thread]::Currentthread.CurrentCulture.DateTimeFormat.FullDateTimePattern = 'yyyy-MM-dd HH:mm:ss.fff' (Get-Date).ToString('F') # or Get-date -f 'F' ```

> No I can't (in PowerShell 7.3.4, at least). It did not... I tried on Linux laptop with 7.4.0-preview.2

> I'm running 7.3.4 on Windows 11 Yes, I wrote above. I doing the same now. Not working on Windows 11, 7.3.4

> In .NET (Core), [cultureinfo]::CurrentCulture / [threading.thread]::Currentthread.CurrentCulture are read-only, but you can easily create a copy of the current culture On Linux works. I remember you once said that the...

> [threading.thread]::Currentthread.CurrentCulture are read-only there. 7.4.0-preview.2 Arch Linux: ![ArcoLinux_2023-04-19_22-14-48](https://user-images.githubusercontent.com/78153320/233177409-e29bff24-40e8-45bc-8ffd-5e6373858691.png)

> the only explanation I can think of is that something in a $PROFILE file Yes. Indeed, cultural info is set in $profile (I did not localize the OS, only...

> Sounds like your $PROFILE assigns a constructed instance. Where is set `[Threading.Thread]::CurrentThread.CurrentCulture`

`bash` also moves (renames) `something` to `...` folder

Could you give more convenient example for testing? I could not reproduce: ``` ((dir -force).where{ $_ -is [io.fileinfo] } | foreach -parallel { $_ | select * }).count ```

In my environment: ``` $ ldd /opt/pwsh/pwsh linux-vdso.so.1 (0x000077b5896ed000) libpthread.so.0 => /usr/lib/libpthread.so.0 (0x000077b5896b0000) libdl.so.2 => /usr/lib/libdl.so.2 (0x000077b5896ab000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x000077b589400000) libm.so.6 => /usr/lib/libm.so.6 (0x000077b589311000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x000077b5892e3000) libc.so.6...