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

Home » Public Forums » archive » Re: Problem with "~" in Unix FINDFILE, still?
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: Problem with "~" in Unix FINDFILE, still? [message #2314 is a reply to message #2311] Thu, 09 June 1994 03:42 Go to previous messageGo to previous message
knipp is currently offline  knipp
Messages: 68
Registered: January 1993
Member
In article 120922@ossenu.astro.nwu.edu, pendleton@ossenu.astro.nwu.edu (Jim Pendleton) writes:
> Could someone verify the following Unix IDL "bug" for me in a more recent
> version of IDL than 3.0.0?
>
> The problem I am seeing is that the FINDFILE function doesn't properly
> interpret a "~" as a symbol for the home directory.
>
...

Unfortunately my version is just slightle "more recent" than yours
(SunOs, IDL 3.1.1), but I can confirm that "bug".

What I do to overcome that is to test every filename in the following
way:

- starting with '~'
> change to getenv('HOME')

- starting with '$XYZ'
> change to getenv('XYZ')

- starting with neither '.' nor '/'
> search along IDL_PATH for appropiate file

I've coded the tests in a routine. If someone's interested I'll
post/-email that routine.

Karlheinz

____________________________________________________________ __________________
__ ____ __
/ // _ \ / / Karlheinz Knipp phone: +49 511 - 762 4922
/ // /_/ // / University of Hannover fax: +49 511 - 762 2483
/ // ____// / Institute for Photogrammetry
/ // / / / Nienburger Str.1
/_//_/ /_/ FRG 30167 Hannover e-mail: knipp@ipi.uni-hannover.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and NIS - cd?
Next Topic: Elementary image question

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

Current Time: Wed Oct 08 19:13:44 PDT 2025

Total time taken to generate the page: 0.00430 seconds