News for hackers. Stuff that matters.
Re:Write Posix Shell by chasil on Saturday March 11, 2023 @02:00PM (#35111417)
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...