Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upNon-zero exit code on syntax error #1161
Comments
This comment has been minimized.
This comment has been minimized.
|
Sorry, my mistake. I neglected to use the This works fine:
and also with the
|
lassik
closed this
Jul 10, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Oct 8, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
lassik commentedJul 10, 2018
What version of standard?
11.0.1
What operating system, Node.js, and npm version?
MacOS, Node.js 10.6.0, npm 6.1.0
What did you expect to happen?
I expected this shell command:
echo "(" | standard; echo "exit code is $?"to say that the exit code is some number other than zero (because zero conventionally means success, whereas non-zero means failure). I believe it would be appropriate so that editor plugins and batch jobs don't try to use the output from stdout as if it were valid code.
What actually happened?
The exit code is zero (indicating success) even when there is a syntax error in the input.