Hi,
I just tested your script in current CVS build and it reproduces.
However if you use quotes it will work as expected:
setinfo y -d "@sInfo"
(Probably Allin is saying the same ;)
Hélio
On Wed, Mar 12, 2014 at 4:08 PM, yinung at Gmail <yinung.cycu(a)gmail.com>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.
Thanks
Yi-Nung Yang
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users