comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Q: routine name case sensitivity on unix
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Q: routine name case sensitivity on unix [message #17465] Mon, 25 October 1999 00:00
m218003 is currently offline  m218003
Messages: 56
Registered: August 1999
Member
In article <7usou7$s6q$1@hammer.msfc.nasa.gov>,
mallors@msfc.nasa.gov (Robert S. Mallozzi) writes:
>
>
> In article <7uqsir$n1q$1@nnrp1.deja.com>,
> Mirko Vukovic <mvukovic@taz.telusa.com> writes:
>>
>> 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.
>>

you can turn on the case flag when ftp'ing your routines from
the PC to the unix system.

Martin.

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 or 416 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
Re: Q: routine name case sensitivity on unix [message #17472 is a reply to message #17465] Sat, 23 October 1999 00:00 Go to previous message
mallors is currently offline  mallors
Messages: 76
Registered: November 1997
Member
[Posted and mailed]

In article <7uqsir$n1q$1@nnrp1.deja.com>,
Mirko Vukovic <mvukovic@taz.telusa.com> writes:
>
> 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.
>

#!/bin/sh
#
# Rename all files in the current directory to lower case.

for file in *; do
mv $file `echo $file | tr '[A-Z' '[a-z]'`
done

--EOF


Make sure you use the correct type of quotes.

Regards,
-bob


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
Robert S. Mallozzi 256-544-0887
Mail Code SD 50
Work: http://gammaray.msfc.nasa.gov/ Marshall Space Flight Center
Play: http://cspar.uah.edu/~mallozzir/ Huntsville, AL 35812
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
Re: Q: routine name case sensitivity on unix [message #17477 is a reply to message #17472] Fri, 22 October 1999 00:00 Go to previous message
Mirko Vukovic is currently offline  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.
Re: Q: routine name case sensitivity on unix [message #17478 is a reply to message #17477] Fri, 22 October 1999 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: GIF89a support in IDL
Next Topic: Z-Buffer

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:27:09 PDT 2025

Total time taken to generate the page: 0.00683 seconds