Hi,
for an example please save both attached files next to each other, and 
then execute script "check1.inp".
I don't think doing an 'include' inside a function is valid, but gretl 
seems to stumble over this. Note for example that the function hu2() in 
check2.inp is never called, but I still get a printout of "hello" before 
I get an error message.
This is with 1.10.2 (not the latest snapshot).
thanks,
sven