4 ms·
> And it is so wonderously mistaken in assigning a boolean type to $? Use $LASTEXITCODE for native executables, and $? for PowerShell cmdlets. https://learn.m
by delta_p_delta_x 4y ago
> 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/microsoft.powershell.core/about/about_automatic_variables?view=powershell-7.3#lastexitcode https://learn.microsoft.com/en-us/powershell/module/microsof...