Re: getenv in Linux

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sun, 19 Sep 1999, you wrote:
> I am trying to use some code I wrote for DOS/Win32 on Linux. One of the
> routines finds out where an included file is located (it checks the
> current directory and the Euphoria include directory). To find out where
> the Euphoria include directory is, it uses getenv("EUDIR") - this works
> in DOS, but not on Linux. On linux, getenv("EUDIR") returns the current
> directory, even though echo $EUDIR displays the correct directory. Is
> this a bug or just something I'm doing wrong?

Ermm..  When I run the following program from my home/irv directory, I get
The EUDIR IS: /home/irv/euphoria

Press Enter...

sequence i
i = getenv("EUDIR")
printf(1,"The EUDIR IS: %s",{i})

Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu