This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: base-files: LOGNAME


On Mon, May 31, 2010 1:22 pm, Corinna Vinschen wrote:
> On May 30 13:11, Yaakov S wrote:
>> On 2010-05-30 04:31, John Morrison wrote:
>> >Could we do;
>> >
>> >LOGNAME=$USERNAME
>> >export LOGNAME
>> >
>> >instead?
>>
>> I'm not sure those are always equivalent, but I'm no expert on POSIX.
>
> USERNAME is the Windows username.  LOGNAME should be rather equivalent
> to $USER.

If that's true, then we can't do a simple LOGNAME=$USER...

$ echo -e "USERNAME = $USERNAME\nUSER     = $USER\nLOGNAME  = `logname`"
USERNAME = John
USER     = john
LOGNAME  = John

Note the case...

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]