getenv

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

I have set an environmental variable in XP to null. It exists but is empty.
getenv returns a -1 which I would think should be {}. An empty sequence,
however the function returns -1 which the doc says is undefined. It is not
undefined but is a null sequence as I have set it up. Is this correct? I'm
using EU 2.4 but I suspect it has not change in the current version.

Syntax:      x = getenv(s)

 Description: Return the value of an environment variable. If the variable is
              undefined, return -1.

 Comments:    Because either a sequence or an atom (-1) might be returned, you
              should probably assign the result to a variable declared as
              object.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu