On May 31 16:18, John Morrison wrote:
> 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...

I don't know where the logname tool is getting the wrong case from.  But
that still allows to do an `export LOGNAME=$USER'


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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