News for hackers. Stuff that matters.
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...

There are no comments on this comment yet.