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

Home » Public Forums » archive » Re: Strange UNIX or strange IDL?
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: Strange UNIX or strange IDL? [message #13410 is a reply to message #13391] Wed, 04 November 1998 00:00 Go to previous messageGo to previous message
seanosea is currently offline  seanosea
Messages: 6
Registered: November 1998
Junior Member
In unix, roughly speaking, pwd returns the environment variable $PWD,
available to all processes.

The IDL command getenv('PWD') asks directly for the environment variable.
Unless you've issued system calls, this is the directory IDL was started from.

This is *not* the same as the current directory which IDL is searching for
files in, which can be changed by using IDL> cd, 'mydir' If you issue cd
and then ask for the environment variable again, it should be the same: only
the first item in IDL's internal path "." has changed. To get IDL's current
directory, try IDL> cd, CURRENT=curdir

Beannacht,
Sean O'Sea

In article <36409D18.FA925705@ssl.berkeley.edu>,
Harald Frey <hfrey@ssl.berkeley.edu> wrote:
> IDL> print,!version
> { sparc sunos unix 5.1 Apr 13 1998}
> IDL> pwd=getenv('PWD')
> IDL> print,pwd
> /disks/sprite/disk1/hfrey/idl/image/wic
> IDL> pwd=getenv('pwd')
> IDL> print,pwd
>
> IDL>
>
> With the name argument of getenv set to capital letters I get the right
> answer, but in small letters 'pwd' returns the null string. However, if
> I use the same command on the UNIX platform I get
>
> image1 [1] pwd
> /disks/sprite/disk1/hfrey/idl/image/wic
> image1 [2] PWD
> PWD: Command not found
>
> and UNIX does not like the capital letter 'PWD'.
>
> Any explanation?
>
> Harald Frey
> hfrey@ssl.berkeley.edu
>
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: random numbers with gamma distribution
Next Topic: Converting characters to real

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

Current Time: Mon Oct 20 11:49:34 PDT 2025

Total time taken to generate the page: 3.12203 seconds