gnudatalanguage / gdl

GDL - GNU Data Language
GNU General Public License v2.0
277 stars 61 forks source link

Unknown command: run #1914

Open mzechmeister opened 1 day ago

mzechmeister commented 1 day ago

It seems the .run command is not fully implemented. Here an example with .r, which should be an abbreviation of .run or (.rnew?)

IDL> .r
- i=1
- end
% Compiled module: $MAIN$.

vs.

GDL> .r
i=1
end
% Unknown command: r
i=1
end

The run command is handy to copy&paste larger and nested code snippets into the command line. With the option -t the source code can be inspected.

I noted that compiling with .r function.pro works at least locally; but not when an absolute path is given, like .r /home/gdl/function.pro yielding % Error opening file. File: /home/gdl/function.pro).

jtappin commented 1 day ago

This looks to be largely the same issue as #1868.