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

Home » Public Forums » archive » Re: idl5.5 bug (relative path)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: idl5.5 bug (relative path) [message #29269 is a reply to message #29198] Thu, 07 February 2002 15:28 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
Nigel Wade <nmw@ion.le.ac.uk> writes:

> Reimar Bauer wrote:

>> Hi,
>>
>> I have problems accessing data over a relative paths.
>>
>>
>> $ ls ../../../../data/mo_output/modell_original_output/test.dat
>> gives ../../../../data/mo_output/modell_original_output/test.dat
>>
>> print,file_test('../../../../data/mo_output/modell_original_ output/test.dat')
>> 0
>>
>>
>> Is there a work around known?
>>
>> Reimar

> Unfortunately I can confirm this bug on Linux, IRIX and Solaris.
> It goes wrong at the ../../.. stage (../.. is ok).

I tried this with IDL/v5.4.1 on my Alpha workstation, and had no problems. I
was able to make it work to five levels, at which point I stopped testing.

IDL> print,file_test('../../../../../.cshrc')
1

One thing you have to be careful about is that none of the directories can be
logical links to other places. For example, on my system I can do the
following

> echo $PWD
/disk1/thompson/temp
> cd ..
> echo $PWD
/disk10/thompson

If you were in the temp directory, you might think that .. would take you to
/disk1/thompson, but it actually takes you to /disk10/thompson, because temp is
really a logical link to a directory on a different disk. Is it possible that
this is what is causing the problem?

William Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: StrSplit wont port to Windows?
Next Topic: idl5.5 bug (relative path)

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

Current Time: Fri Oct 10 14:14:58 PDT 2025

Total time taken to generate the page: 1.12196 seconds