Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use exit code to set status var #360

Merged
merged 16 commits into from
Jun 29, 2022
Merged

Use exit code to set status var #360

merged 16 commits into from
Jun 29, 2022

Conversation

vinc
Copy link
Owner

@vinc vinc commented Jun 26, 2022

Should a program exit or return with a isize, usize, ExitCode, Result<(), usize>, or Result<(), ExitCode>. A few options were tried in this PR to end up on the latter, but we may simplify it again as it was before to ExitCode.

At least now we can get the code with print $? in the shell, and the userspace binaries no longer need to return anything by default instead of 0.

@vinc vinc changed the title Use exit code to set $status var Use exit code to set status var Jun 26, 2022
@vinc
Copy link
Owner Author

vinc commented Jun 27, 2022

Some tests with print foo => /bar are failing when using the RAM FS in this PR and the previous one with no obvious fix: #357

Calling the console to print an empty string with the serial driver consistently fix them, but calling the serial driver directly doesn't work.

@vinc
Copy link
Owner Author

vinc commented Jun 27, 2022

@vinc vinc marked this pull request as ready for review June 29, 2022 16:55
@vinc vinc merged commit e4ce2ab into trunk Jun 29, 2022
@vinc vinc deleted the feature/exit-code branch June 29, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant