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

echo $? -> 0 #26

Open
Athesto opened this issue Jun 25, 2020 · 1 comment
Open

echo $? -> 0 #26

Athesto opened this issue Jun 25, 2020 · 1 comment

Comments

@Athesto
Copy link

Athesto commented Jun 25, 2020

Hi How are you?
I was trying to do a script that use betty, but I need to check if betty throws and error, but with this code, she says that there is an error, but when I check the exit status $? it says that there is no error. Is this a bug?

image

@Athesto
Copy link
Author

Athesto commented Jun 25, 2020

I think that the problem is with the betty.sh because when i use betty-style it works

vagrant:tmp$ betty main.c; echo $?

========== main.c ==========
main.c:4: ERROR: trailing whitespace
total: 1 errors, 0 warnings, 14 lines checked
main
0
vagrant:tmp$ betty-style main.c; echo $?                 
main.c:4: ERROR: trailing whitespace
total: 1 errors, 0 warnings, 14 lines checked
1
vagrant:tmp$ 

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

No branches or pull requests

1 participant