Date: Tue, 25 Jul 2000 09:46:11 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Dawe cc: djgpp-workers AT delorie DOT com, Piotr Eljasiak Subject: Re: Patch to make getlogin() examine env. var. USERNAME In-Reply-To: <397C8CE0.C615DE0A@phekda.freeserve.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.