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

Home » Public Forums » archive » Re: IDL v8 not recognizing bash environment variable
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: IDL v8 not recognizing bash environment variable [message #75798] Tue, 03 May 2011 08:26 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Am 03.05.2011 15:11, schrieb Craig Markwardt:
> On May 3, 6:20 am, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
>> Am 27.04.2011 19:57, schrieb Barry Lesht:
>>
>>> Not sure I'm expressing this correctly in the subject line - this is
>>> my problem: I have a code that ran fine under IDL7 that included the
>>> line "sta_list = READ_ASCII("$SEADAS/local/stationfile.txt,"
>>> TEMPLATE=stationtemplate). I just tried running the same code under
>>> IDL8 and now get the error message
>>
>> I tried with idl7.1
>>
>> IDL> print,"$HOME"
>>
>> and it just tells:
>> $HOME
>>
>> I don't remember that it ever worked without using getenv function.
>
> Careful. You tested the PRINT command, and I agree that "it" never
> automatically retrieved environment variables.
>
> On the other hand, OPEN has always expanded shell variables, for as
> long as I have known. And my experience is that shell variable
> expansion by OPEN still works within IDL 8.1.
>
> Craig
>
>

Oh yes, that works!

Reimar

>
>>
>>> % READ_ASCII: File "$SEADAS/local/stationfile.txt" not found.
>>
>>> The file is most definitely where it should be. After doing some
>>> experimenting, it seems IDL8 isn't getting any value for the $SEADAS
>>> variable.
>>
>>> I hope someone can explain to me why not and how to fix it?
>>
>>> Thanks.
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Support Vector Machine Classification by IDL
Next Topic: IDL 8 uses 3x the memory of IDL 7.1

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

Current Time: Wed Oct 08 15:37:41 PDT 2025

Total time taken to generate the page: 0.00441 seconds