HP-UX Reference (11i v1 05/09) - 5 Miscellaneous Topics (vol 9)

e
environ(5) environ(5)
Jn Julian day n (1 through 365). Leap days are not counted. Febru-
ary 29 cannot be referenced.
n The zero-based Julian day (0 through 365). Leap days are counted.
February 29 can be referenced.
Mm.n.d
The d day (0 through 6) of week n (1 through 5) of month m (1
through 12) of the year. Week 5 refers to the last day d of month
m. Week 1 is the week in which the first day of the month falls.
Day 0 is Sunday.
time Time has the same format as offset except that no leading sign ("-"
or "+") is allowed. The default, if time is not given, is 02:00:00.
While the
STD field and the offset field for
STD must be specified, if the DST
field is also provided, the system will supply default values for other fields not
specified. These default values come from file
/usr/lib/tztab (see
tztab(4)), and, in general, reflect the various historical dates for start and end
of summer time.
Additional names may be placed in the environment by the export command and "name=value" arguments
in sh(1), or by exec(2). It is unwise to add names that conflict with the following shell variables frequently
exported by
.profile files: MAIL, PS1, PS2 and IFS.
The environment of a process is accessible from C by using the global variable:
char ∗∗environ;
which points to an array of pointers to the strings that comprise the environment. The array is terminated
by a null pointer.
EXTERNAL INFLUENCES
International Code Set Support
The LANG, LC_ALL, LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, LC_TIME,
and
NLSPATH environment variables provide support for internationalized applications. The standard utilities
make use of these environment variables as described here and in the individual Environment Variables
subsection of the utilities.
If these variables specify locale categories that are not based upon the same underlying codeset, the results
are unspecified, and the behavior of regular expressions APIs’, such as,
regcomp, glob, and fnmatch
may be affected.
WARNINGS
Some HP-UX commands and library routines do not use the LANG, LC_COLLATE, LC_CTYPE, LC_MONETARY,
LC_NUMERIC, LC_TIME,
or LANGOPTS environment variables. Some commands do not use message cata-
logs, so NLSPATH does not affect their behavior. See the
EXTERNAL INFLUENCES section of specific com-
mands and library routines for implementation details.
NOTES
Coordinated Universal Time
(UTC) is equivalent to Greenwich Mean Time (GMT).
AUTHOR
environ was developed by AT&T and HP.
SEE ALSO
env(1), login(1), sh(1), exec(2), catopen(3C), ctime(3C), getenv(3C), setlocale(3C), profile(4), lang(5), term(5),
tztab(4).
STANDARDS CONFORMANCE
environ: AES, SVID3, XPG2, XPG3, XPG4, FIPS 151-2, POSIX.1
Section 552 Hewlett-Packard Company 4 HP-UX 11i Version 1: September 2005