loganisarn / foma

Automatically exported from code.google.com/p/foma
0 stars 0 forks source link

Foma exits 0 - zero - on lexc syntax error #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a bogus lexc file, say garbage.lexc
2. foma -q -e "read lexc garbage.lexc" -e "compose net" -e "save stack 
garbage.fst " -s
3. echo $?

What is the expected output? What do you see instead?

Expected output: >0
Actual output: 0

What version of the product are you using? On what operating system?

OS: MacOSX 10.9
Foma version: the one included in hfst 3.5.1:

$ hfst_foma -v
hfst_foma 0.9.17alpha

Please provide any additional information below.

The bug is problematic when foma is part of a larger build system, as it causes 
syntax errors to pass by without forcing the linguist to fix them. With a 
proper exit value 'make' will abort at the error, thus making the error 
(hopefully) visible to the lexc developer.

Original issue reported on code.google.com by sju...@gmail.com on 22 Nov 2013 at 12:55