[Gretl-devel] bug: printf

Allin Cottrell cottrell at wfu.edu
Wed May 16 13:27:35 EDT 2007


On Wed, 16 May 2007, Ignacio Diaz-Emparanza wrote:

> nulldata 100
> series y=normal()
> printf "mean(y)=%5.4f\n", mean(y)
> 
> This works ok, but if you forget the comma:
> 
> printf "mean(y)=%5.4f\n" mean(y)
> 
> gretl crashes. 
> This is a syntax error but I think gretl should report it, not crash.

Quite right.  Fixed in CVS.

Allin.


More information about the Gretl-devel mailing list