bin/scilab exit code is incorrect on syntax error
Bug Description
bin/scilab
should exit with a non-zero status in case of parsing error.
Steps to reproduce
❯ scilab -nwni -quit -e "test_run('.', [], [], '../results-for-'+part(getversion(), length('scilab-(+1:$)+'.xml')" && echo PASS || echo FAILED
Scilab 2024.0.0 (Oct 24 2023, 10:49:38)
test_run('.', [], [], '../results-for-'+part(getversion(), length('scilab-(+1:$)+'.xml')
^^
Error: syntax error, unexpected end of file, expecting , or )
Should FAILED
❯ scilab -nwni -quit -e "1+1" && echo PASS || echo FAILED
Should PASS
❯ scilab -nwni -quit -e "1+string(1)" && echo PASS || echo FAILED
Should FAILED