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).
It seems the
.run
command is not fully implemented. Here an example with.r
, which should be an abbreviation of.run
or (.rnew
?)vs.
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
).