This is a very strange issue.
It's happening on my linux IDL 8.2.2, but it is also happening on the old linux IDL 7.0.
I was trying to split a string and got this:
IDL> a = strsplit("hi, my name is po", /extract)
a = strsplit("hi, my name is po", /extract)
^
% Syntax error.
I thought it was strange, and I must have done something wrong, so I checked in the online help browser and, sure enough... it's well written. Just to be sure, I copied from the help page and ran it again:
IDL> Str = 'STRSPLIT chops up strings.'
IDL> print, STRJOIN(STRSPLIT(Str, /EXTRACT), '-')
print, STRJOIN(STRSPLIT(Str, /EXTRACT), '-')
^
% Syntax error.
Proceeding with the strangeness, I then tried some non-existent function and, sure enough, got exactly the same result!
a = anyFunction(input, /keyword)
a = anyFunction(input, /keyword)
^
% Syntax error.
The ^ symbol is always pointing at the keyword, as if IDL isn't understanding it, or something...
I used to have IDL 7.0 and 8.2.2 side by side, but since this came up, I removed both, installed only 8.2.2, but I still get the same thing.
I'm at a loss and decided to switch to python for my immediate needs, but I'd like to fix this, if possible.
When I don't use a keyword, everything works fine. plot,dindgen(100) is my standard test and that goes through well enough.
Running fedora core 18, 32 bits, on a Pentium 4@ 3GHz, if it's relevant...
Please help!
|