Dear Allin,

Yes, it works.
Thanks a lot.

Yi-Nung Yang



2014-03-13 0:13 GMT+08:00 Allin Cottrell <cottrell@wfu.edu>:
On Thu, 13 Mar 2014, yinung at Gmail wrote:

> Dear all,
>
> I am using 1.9.14 (build date 2013-11-21). I found that the command,
> setinfo, may have a small bug when used with "sprintf." See the following
> script
>
> <hansl>
> nulldata 10
> series x=normal()
> lag=3
> series y=movavg(x(-1),lag)
> sprintf sInfo "This is generated from movavg(%s(-1),%d)","x",lag
> setinfo y -d @sInfo
> </hansl>
>
> It seems that setinfo with a string @sInfo will not allow any space in that
> string.

If the string contains spaces it must be quoted:

setinfo y -d "@sInfo"

Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users