This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: base-files: LOGNAME
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Sun, 30 May 2010 10:02:19 +0100
- Subject: Re: base-files: LOGNAME
- References: <4C021FA8.4030403@users.sourceforge.net>
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?
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