[Gretl-devel] Ignacio's tramo script
Allin Cottrell
cottrell at wfu.edu
Thu Feb 1 16:24:13 EST 2007
On Mon, 29 Jan 2007, Ignacio Díaz-Emparanza wrote:
> El Viernes, 26 de Enero de 2007 20:29, Allin Cottrell escribió:
>
>> I believe this is now fixed in the current Windows snapshot, but
>> it does involve some change in syntax for "!" on Windows. Here is
>> the deal...
> I have just tested all of this in my script, and all works ok!
That's good to hear, thanks!
> I only wonder whether it is convenient that the option /c (in
> "cmd /c") be always implicitly run, since in building my script
> I had to run it several times with option /k to check the output
> of the commands executed in the shell ...
In today's snapshot, if the environment variable SHELLDEBUG is
set, then gretl will use "cmd /k" instead of "cmd /c" for "!"
commands (this is a Windows-only thing).
Something else that might be useful in today's build: extending
the idea of named strings, we now have a few "built-in" string
variables:
@gretldir : gretl installation directory
@userdir : user's gretl directory
@gnuplot : the path to gnuplot, as known by gretl
@tramo: ditto for tramo executable
@x12a : ditto for x-12-arima executable
@tramodir : tramo data directory
@x12adir : x-12-arima data directory
These are not Windows-only. You can use these in scripts, e.g.
printf "The tramo data dir is @tramodir\n"
Allin.
More information about the Gretl-devel
mailing list