HP3000-L Archives

November 1996, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Richard Trapp RAT <[log in to unmask]>
Reply To:
Richard Trapp RAT <[log in to unmask]>
Date:
Wed, 6 Nov 1996 16:16:00 PST
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
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]

ATOM RSS1 RSS2