On Thu, 14 Mar 2013, Ignacio Diaz-Emparanza wrote:
With respect to this type of definition of a script:
string stringname = $(shellcommand)
It seems stricking that we can put in a string the output of a shell command,
but we cannot put in a string the ouput of a gretl command.
I mean:
string stringname = $g(ols Y const X)
(where $g() means it is a gretl command)
Or, is any other way to do that?
<hansl>
set echo off
set messages off
open data4-10
outfile "(a)dotdir/tmp.txt" --write
ols 1 0 2 3
outfile --close
string results = readfile("(a)dotdir/tmp.txt")
print results
</hansl>
Allin