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

[FEAT] Implement builtin of exit #99

Merged
merged 12 commits into from
Jan 21, 2024
Merged

[FEAT] Implement builtin of exit #99

merged 12 commits into from
Jan 21, 2024

Conversation

LeaYeh
Copy link
Owner

@LeaYeh LeaYeh commented Jan 20, 2024

Handle internal error in preprocess and subshell

@itislu itislu self-assigned this Jan 20, 2024
@itislu itislu added the feature New feature of the project label Jan 20, 2024
@itislu itislu added this to the Exit Code milestone Jan 20, 2024
source/builtins/exit_utils.c Outdated Show resolved Hide resolved
source/builtins/exit_utils.c Show resolved Hide resolved
source/builtins/exit_utils.c Outdated Show resolved Hide resolved
source/builtins/exit_utils.c Outdated Show resolved Hide resolved
@itislu itislu modified the milestones: Exit Code, Builtins Jan 21, 2024
Fixes the following test cases (should account for all possible overflows):
- [x] 9223372036854775808 -> numeric argument required
- [x] -9223372036854775809 -> numeric argument required
- [x] -922337203685477580 -> 52
- [x] 0000000000000000000000000009223372036854775807 -> 255
@LeaYeh LeaYeh merged commit 9596430 into main Jan 21, 2024
1 check passed
@LeaYeh LeaYeh deleted the feat-builtin-exit branch January 21, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants