This is the mail archive of the cygwin@cygwin.com 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]

RE: Windows login name, USER and HOME env variables..


Hello Jorg,

You wrote:
> I wrote:
>>  a. Where does Bash get the space from? (the registry key mentioned 
>>     above, or elsewhere?)
>>  b. Idem for CVS - isn't that supposed to use the $HOME variable to 
>>     find out where my files live (and where it should plant the .ssh 
>>     dir)?
> Easy: Any app that requests the *system* for your user name, will get
> the real one.
Okay, but is CVS supposed to reconstruct the home directory path by 
itself? IMHO, it should just check the HOME variable and take it from 
there.. (and then, it should find the name w/o the space..).

>>  c. Other than logging in under another name, is there a workaround?
> Also have a look at your /etc/passwd that was also generated using
> system functionality. I am quite not sure whether you may override the
> system's user name here or not, since I do not know how the ported
> Unix apps really retrieve the user's name.
.. which is exactly what I don't know either.
You're right that the passwd file, though - I'm taking a look..
Yup.. that works..

>>  d. Should this be considered a bug?
> IMHO no.
I'd consider it weird anyway :)
Does any1 here know why CVS reads the passwd file rather than the HOME 
and USER env vars?

Greetz!

Ronald


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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