X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4C021FA8.4030403@users.sourceforge.net>
References: <4C021FA8.4030403@users.sourceforge.net>
Date: Sun, 30 May 2010 10:02:19 +0100
Message-ID: <AANLkTilUfdSyZF6bVEKHCqImBF62vIu8aV2SNq2cx6xI@mail.gmail.com>
Subject: Re: base-files: LOGNAME
From: Andy Koppe <andy.koppe@gmail.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Sunday, May 30, 2010, Yaakov wrote:
> POSIX.1[1] describes a LOGNAME environment variable which represents the =
user's login name. =C2=A0Adding the following lines to /etc/profile should =
do the trick:
>
> LOGNAME=3D"`logname`"
> export LOGNAME
>
> Where logname(1) is a program supplied by coreutils whose presence is req=
uired 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?

Andy

--
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

