[Gretl-devel] environment variables in gretl script

Allin Cottrell cottrell at wfu.edu
Thu Apr 12 11:58:04 EDT 2007


On Thu, 12 Apr 2007, Sven Schreiber wrote:

> Again, I should have read the latest manual... That sounds very good!
> (Although your last statement above doesn't seem 100% correct at least
> on windows, gretl started ok for me with a user dir setting of "/".

Oops, then that needs fixing.

> I also just learned about the named strings. Very nice as well! But --
> I can print out "@userdir" alright, but can't assign to a string:
> 
> ? string jojo = "@userdir"
> Syntax error in command line
> ? string jojo = @userdir
> Syntax error in command line ...

> Bug or feature?

Bug, I'd say.

> And BTW, could strings be used as function arguments/parameters? 
> (Not that I have an urgent need, just checking.)

Functions don't accept string arguments as such.  But you could
build a function call using saved strings.  Saved strings are 
essentially macros: "@foo" is cashed out prior to parsing the 
command line.

> And finally totally unrelated: could it be that the latest win 
> snapshot has no syntax coloring support compiled in?

I suppose it could be.  Not sure why that would be.  I'll have to 
try it myself.

Allin.


More information about the Gretl-devel mailing list