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

Could base-files please be patched accordingly?


Yaakov

[1] http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
[2] http://www.opengroup.org/onlinepubs/9699919799/utilities/logname.html


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

Reply via email to