This works in Linux, producing the two first letters of the LANG
environment variable:
string lang=substr(getenv("LANG"),1,2)
But I don't know how to do it in Windows (I see Windows 7 has not this
variable in the environment)
El 22/06/15 a las 03:44, yinung at Gmail escribió:
Dear all,
I just try the following envioenment strings with the hansl script
below under winXP.
I testes with both gretl 1.10.90cvs and 1.10.1. The results turned the
same. It looks that many of the strings returned null strings. Is this
what sven said "... wasn't able to get anything out of it?"
Thanks
Yi-Nung
<hansl>
envString = "TEMP USER HOME gretldir workdir dotdir gnuplot tramo x12a
tramodir x12adir"
loop foreach j @envString
string s=getenv("$j")
printf "env string $j=**%s**\n",s
endloop
</hansl>
--
Ignacio Díaz-Emparanza
Departamento de Economía Aplicada III (Econometría y Estadística)
Universidad del País Vasco - Euskalherriko Unibertsitatea, UPV/EHU
Tfno: (+34) 94 601 3732
http://www.ehu.eus/ea3