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

Home » Public Forums » archive » Re: cd bug in IDL 5.5
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: cd bug in IDL 5.5 [message #31039] Wed, 05 June 2002 00:36 Go to next message
Wolfgang.Dobler is currently offline  Wolfgang.Dobler
Messages: 4
Registered: April 2002
Junior Member
Reimar Bauer <r.bauer@fz-juelich.de> writes:

>> Has anybody encountered this one before:
>>
>> idl> cd, '../../..'
>>
>> only moves one directory up under IDL 5.5 (5.4 was OK).
>
> you can use file_expand_path('../../../idl')
>
>
> The FILE_EXPAND_PATH function expands a given file or partial directory
> name to its fully qualified name regardless of the current working
> directory.

Thanks, that's exactly what I needed!

I first tried EXPAND_PATH, but that one just confirms the bug:

idl> print, expand_path('../../../idl')
../idl


W o l f g a n g

--
------------------------------------------------------------ ----
| Wolfgang Dobler, Kiepenheuer Institute for Solar Physics |
| http://www.kis.uni-freiburg.de/~dobler/ |
------------------------------------------------------------ ----
Re: cd bug in IDL 5.5 [message #31042 is a reply to message #31039] Tue, 04 June 2002 13:34 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Dick Jackson wrote:
>
> <Wolfgang.Dobler@kis.uni-freiburg.de> wrote in message
> news:yg7it50v0rv.fsf@cincinnatus.kis.uni-freiburg.de...
>> Has anybody encountered this one before:
>>
>> idl> cd, '../../..'
>>
>> only moves one directory up under IDL 5.5 (5.4 was OK).
>
> Since no one else has done so, I'll just chime in to say I'm *not* seeing
> this problem with IDL 5.5 under Windows 2000. Are these problems seen on
> Unix only?

That's right. I sent a few months ago this bug request to CREASO.

Cia

Reimar
>
> Cheers,
> --
> -Dick
>
> Dick Jackson / dick@d-jackson.com
> D-Jackson Software Consulting / http://www.d-jackson.com
> Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
Re: cd bug in IDL 5.5 [message #31047 is a reply to message #31042] Tue, 04 June 2002 10:16 Go to previous messageGo to next message
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
<Wolfgang.Dobler@kis.uni-freiburg.de> wrote in message
news:yg7it50v0rv.fsf@cincinnatus.kis.uni-freiburg.de...
> Has anybody encountered this one before:
>
> idl> cd, '../../..'
>
> only moves one directory up under IDL 5.5 (5.4 was OK).

Since no one else has done so, I'll just chime in to say I'm *not* seeing
this problem with IDL 5.5 under Windows 2000. Are these problems seen on
Unix only?

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
Re: cd bug in IDL 5.5 [message #31066 is a reply to message #31047] Mon, 03 June 2002 14:11 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Wolfgang.Dobler@kis.uni-freiburg.de wrote:
>
> Has anybody encountered this one before:
>
> idl> cd, '../../..'
>
> only moves one directory up under IDL 5.5 (5.4 was OK).
>
> The problem is that I have (and need) '../../../idl' in my !path; is there
> a workaround to get this directory -- which may vary, depending on where I
> currently am -- still included into !path ?
>
> W o l f g a n g


Dear Wolfgang,

we have recognized this behaviour too.


you can use file_expand_path('../../../idl')


The FILE_EXPAND_PATH function expands a given file or partial directory
name to its fully qualified name regardless of the current working
directory.

regards
Reimar



--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
============================================================ =======
Re: cd bug in IDL 5.5 [message #31067 is a reply to message #31066] Mon, 03 June 2002 09:58 Go to previous messageGo to next message
mperrin+news is currently offline  mperrin+news
Messages: 81
Registered: May 2001
Member
Wolfgang.Dobler@kis.uni-freiburg.de <Wolfgang.Dobler@kis.uni-freiburg.de> wrote:
> Has anybody encountered this one before:
>
> idl> cd, '../../..'
>
> only moves one directory up under IDL 5.5 (5.4 was OK).
>
> The problem is that I have (and need) '../../../idl' in my !path; is there
> a workaround to get this directory -- which may vary, depending on where I
> currently am -- still included into !path ?

Symlinks? May or may not be feasible depending on how many different locations
you'd have to create them in - but hey, that's what shell scripts are for.

- Marshall
Re: cd bug in IDL 5.5 [message #31098 is a reply to message #31042] Sat, 15 June 2002 18:23 Go to previous message
G Karas is currently offline  G Karas
Messages: 12
Registered: March 2002
Junior Member
After noticing that bug a month or so ago, I just split it into consecutive
cd ../ statements, like

for i = 0, x ; x you set or calculate depending how many levels you have
gone deep
cd, '../'
endfor

another, perhaps, bug i have discovered is that the file_expand_path
expands from the current working directory (not very handy :x ), not the
actual directory where the file might be. It should issue a warning if that
file does not exist in the current directory, something like:

a = '...../blahblah.bla'
cd, 'elsewhere'
ia = file_info(a, /noexpand_path)
if ia.exists NE 1 then print, 'File not found in current directory,
file_expand_path disabled'

or something like that...

cheers!

Giorgos Karas





"Reimar Bauer" <r.bauer@fz-juelich.de> wrote in message
news:3CFD246B.AB44B20C@fz-juelich.de...
> Dick Jackson wrote:
>>
>> <Wolfgang.Dobler@kis.uni-freiburg.de> wrote in message
>> news:yg7it50v0rv.fsf@cincinnatus.kis.uni-freiburg.de...
>>> Has anybody encountered this one before:
>>>
>>> idl> cd, '../../..'
>>>
>>> only moves one directory up under IDL 5.5 (5.4 was OK).
>>
>> Since no one else has done so, I'll just chime in to say I'm *not*
seeing
>> this problem with IDL 5.5 under Windows 2000. Are these problems seen on
>> Unix only?
>
> That's right. I sent a few months ago this bug request to CREASO.
>
> Cia
>
> Reimar
>>
>> Cheers,
>> --
>> -Dick
>>
>> Dick Jackson / dick@d-jackson.com
>> D-Jackson Software Consulting / http://www.d-jackson.com
>> Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
>
> --
> Reimar Bauer
>
> Institut fuer Stratosphaerische Chemie (ICG-I)
> Forschungszentrum Juelich
> email: R.Bauer@fz-juelich.de
> ------------------------------------------------------------ -------
> a IDL library at ForschungsZentrum Juelich
> http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
> ============================================================ =======
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Appending data to a preexisting SD dataset in an HDF file
Next Topic: varimax rotation of EOFs / PCA

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

Current Time: Wed Oct 08 14:52:02 PDT 2025

Total time taken to generate the page: 0.00584 seconds