On Mon, 29 Jun 2020, Sven Schreiber wrote:
Hi,
I've noticed this behavior, perhaps Windows-specific:
? eval @gretldir
> C:
Das Symbol 'C' ist nicht definiert # [undefined]
? eval $gretldir
C:\Program Files\gretl
?
I would have expected @gretldir to either work, or to return an empty
string, or to throw an error, but not this problem. Maybe some backslash
trouble?
Actually the first result should be expected. "@" does string
substitution, and after substiitution has been done the input line
line reads
eval C:\Program Files\gretl
To get the effect you apparently expected you'd need to do
eval "@gretldir"
Allin