And it is so wonderously mistaken in assigning a boolean type to $?.
I really cannot fathom how this could be, as Microsoft bundles curl, which has nearly 100 exit codes on various types of failure.
Whoever made this language decision needs to explain themselves.
Re:Write Posix Shell
by delta_p_delta_x on Sunday March 12, 2023 @03:35AM
(#35117723)
> And it is so wonderously mistaken in assigning a boolean type to $?
Use $LASTEXITCODE for native executables, and $? for PowerShell cmdlets.
https://learn.microsoft.com/en-us/powershell/module/microsof...
As it passes objects the filtering, sorting, joining is generic across files or any other data type.