From marcin@nsb.pl Sat Aug 14 14:10:36 2010 From: Marcin =?utf-8?q?B=C5=82a=C5=BCejowski?= To: gretl-devel@gretlml.univpm.it Subject: [Gretl-devel] Bug in script? Date: Sat, 14 Aug 2010 20:10:30 +0200 Message-ID: <4C66DC16.8090305@wrzosy.nsb.pl> Content-Type: multipart/mixed; boundary="===============7882335114963039306==" --===============7882335114963039306== Content-Type: text/x-vcard Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="marcin.vcf" MIME-Version: 1.0 YmVnaW46dmNhcmQNCmZuO3F1b3RlZC1wcmludGFibGU6TWFyY2luIEI9QzU9ODJhPUM1PUJDZWpv d3NraQ0KbjtxdW90ZWQtcHJpbnRhYmxlOkI9QzU9ODJhPUM1PUJDZWpvd3NraTtNYXJjaW4NCmVt YWlsO2ludGVybmV0Om1hcmNpbkB3cnpvc3kubnNiLnBsDQpub3RlOkdHOiAyMDMxMjcNCngtbW96 aWxsYS1odG1sOlRSVUUNCnZlcnNpb246Mi4xDQplbmQ6dmNhcmQNCg0K --===============7882335114963039306==-- From cottrell@wfu.edu Sat Aug 14 14:17:38 2010 From: Allin Cottrell To: gretl-devel@gretlml.univpm.it Subject: Re: [Gretl-devel] Bug in script? Date: Sat, 14 Aug 2010 14:17:37 -0400 Message-ID: In-Reply-To: 4C66DC16.8090305@wrzosy.nsb.pl MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0966748501229141572==" --===============0966748501229141572== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Sat, 14 Aug 2010, Marcin B�^Bażejowski wrote: > suppose we have series and want to add values to some observations. > Following script doesn't work: > Yes, something needs fixing with the "$i" read. But notice that there's no need to use string substitution in this case. If you replace the line in the loop with genr y[i] += 1000 it works as expected. Allin --===============0966748501229141572==-- From cottrell@wfu.edu Sun Aug 15 20:53:30 2010 From: Allin Cottrell To: gretl-devel@gretlml.univpm.it Subject: Re: [Gretl-devel] Bug in script? Date: Sun, 15 Aug 2010 20:53:29 -0400 Message-ID: In-Reply-To: Pine.A41.4.58.1008141415110.467346@f1n11.sp2net.wfu.edu MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1925670054707996905==" --===============1925670054707996905== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Sat, 14 Aug 2010, Allin Cottrell wrote: > On Sat, 14 Aug 2010, Marcin B�^Bażejowski wrote: > > > suppose we have series and want to add values to some observations. > > Following script doesn't work: > > > > Yes, something needs fixing with the "$i" read... It's fixed in CVS. -- Allin Cottrell Department of Economics Wake Forest University --===============1925670054707996905==--