Re: Q: routine name case sensitivity on unix [message #17477 is a reply to message #17472] |
Fri, 22 October 1999 00:00   |
Mirko Vukovic
Messages: 124 Registered: January 1996
|
Senior Member |
|
|
In article <7uq3nv$o6q@post.gsfc.nasa.gov>,
thompson@orpheus.nascom.nasa.gov (William Thompson) wrote:
> Mirko Vukovic <mvukovic@taz.telusa.com> writes:
>
>> I wrote a bunch of routines on windows that a fellow is trying
>> to run on unix. It seems (according to him), that if
>> IDL encounters an un-compiled routine, it tries to find it,
>> but then the case has to match. That can be a problem if
>> the code refers to routine Xyz, which is stored in XYZ.pro. It seems
>> that Unix (I think he is on Linux) machines cannot make the
connection
>> between the two.
>
> That's almost correct. IDL doesn't actually pay attention to the case
used in
> an IDL statement. Routine Xyz can also be referred to as xyz, XYZ,
xYz, etc.
> When it's looking for this routine in the path, it always assumes that
the
> routine is stored in a file with all lowercase characters, i.e.
"xyz.pro".
> On the Unix machine, simply change all your filenames to lowercase,
and you
> should be all set.
>
> The only practical way to compile a routine stored in a mixed case
filename is
> to use .run which is case-sensitive, e.g. ".run XYZ.pro".
>
> William Thompson
>
hmmm, do you know of a good way to rename all routines in a
directory to lower case? I presume it would involve pipes,
ls, grep, etc, but don't have the time to figure it all out now.
tia,
Mirko
Sent via Deja.com http://www.deja.com/
Before you buy.
|
|
|