X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Message-ID: <0e02511a11473cd99d0035122f0c6dc0.squirrel@mail.morrison.mine.nu> In-Reply-To: References: <4C021FA8 DOT 4030403 AT users DOT sourceforge DOT net> Date: Sun, 30 May 2010 10:31:59 +0100 Subject: Re: base-files: LOGNAME From: "John Morrison" To: cygwin AT cygwin DOT com User-Agent: SquirrelMail/1.4.20 MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sun, May 30, 2010 10:02 am, Andy Koppe wrote: > On Sunday, May 30, 2010, Yaakov wrote: >> POSIX.1[1] describes a LOGNAME environment variable which represents the >> user's login name.  Adding the following lines to /etc/profile should do >> the trick: >> >> LOGNAME="`logname`" >> export LOGNAME >> >> Where logname(1) is a program supplied by coreutils whose presence is >> required by POSIX.1[2]. > > That would mean a costly fork() during shell startup. Could this be > set in the DLL instead, as happens with the SHELL variable? Could we do; LOGNAME=$USERNAME export LOGNAME instead? J. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple