Mail Archives: djgpp-workers/2000/07/25/02:50:13
On Mon, 24 Jul 2000, Richard Dawe wrote:
> If getlogin() defaults to "dosuser" in the absence of USERNAME, etc., is
> there any point defining it DJGPP.ENV? It seems like the definition in
> DJGPP.ENV is redundant.
You are assuming that every program which needs to know the username
does so by calling `getlogin'. This assumption is not true. Some of
them examine the environment directly, or have different order of
precedence between relevant variables.
But even if the definition in DJGPP.ENV is redundant, USER was there
for a long time, and I don't think it did any harm. So removing it
would IMHO require a real problem that it causes somewhere. Being
redundant isn't such a problem.
- Raw text -