Subject: | |
From: | |
Reply To: | |
Date: | Wed, 6 Nov 1996 16:16:00 PST |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Greetings folks,
I just wanted to pass on a interesting "feature" of the "getenv" function
which we ran into recently:
Doing a getenv on a non-existent variable named "SYSTEM" returned a value
instead of a null string.
I called HP and they figured out that it was their JCW mechanism doing
some interesting stuff because of their predefined mnemonics for some jcw's.
I got these values from ":HELP SETJCW":
OK for 0;
WARN for 16,384;
FATAL for 32,768;
SYSTEM for 49,152
Also, any combination of one of these mnemonics + an integer results in that
mnemonic's value + the integer:
OK3 for 3, SYSTEM1 for 49,153, etc.
Bottom line: Watch out for using getenv on "OK", "WARN", "FATAL" or
"SYSTEM" alone or followed by digits!
I asked for an enhancement request to at least document this in the "getenv"
documentation. We'll see.
Rich Trapp
[log in to unmask]
|
|
|