We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
During testing, I encountered some inconsistencies regarding the exit status code.
minishell: syntax error near unexpected token | minishell> echo $? 258
This should not give 258 as return value. It should return 2
ctrl+c returns 0 as exit status, but should return 130.
ctrl+c
minishell> " minishell: unclosed quotes minishell> echo $? 0
returns 0 as exit status but should also return 2.
The text was updated successfully, but these errors were encountered:
Thank you! We will look into it :D
Sorry, something went wrong.
You actually have the correct exit code when using ctrl+c in a blocking child command:
minishell> cat # pressing ctrl+c minishell> echo $? 130
Calling the cat command and then pressing ctrl+c gives the correct exit status of 130.
RealConrad
harshkumbhani
Successfully merging a pull request may close this issue.
Get correct exit status
During testing, I encountered some inconsistencies regarding the exit status code.
This should not give 258 as return value. It should return 2
ctrl+c
returns 0 as exit status, but should return 130.returns 0 as exit status but should also return 2.
The text was updated successfully, but these errors were encountered: