delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <8247784.post@talk.nabble.com> |
Date: | Tue, 9 Jan 2007 14:15:09 -0800 (PST) |
From: | David Smiley <DSMILEY AT mitre DOT org> |
To: | cygwin AT cygwin DOT com |
Subject: | RE: username should be lower-case for $USER |
In-Reply-To: | <008601c7340c$a76fc380$a501a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Nabble-From: | DSMILEY AT mitre DOT org |
References: | <8241120 DOT post AT talk DOT nabble DOT com> <008601c7340c$a76fc380$a501a8c0 AT CAM DOT ARTIMI DOT COM> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
I forgot to add, I log into a windows domain and so I can't set the case. Perhaps this issue only relates to windows domain logins. Maybe they are case insensitive because when I log into the domain, I ALWAYS specify it in lower case. I don't think I've ever seen it presented to me (in Windows) as upper case. Yet in CYGWIN, $USER=DSMILEY. If domain logins are case *in*sensitive (appears likely), then it would seem to me that it should be normalized to lower-case for use in CYGWIN. Dave Korn wrote: > > On 09 January 2007 16:25, David Smiley wrote: > >> I am new to Cygwin. I noticed that the $USER environment variable has my >> username in upper-case. So it is "DSMILEY". On unix based hosts I log >> into, it is always lower-case. So if I try to SSH to another machine >> where >> I have the same login name, I can't let SSH automatically default to >> $USER >> because the case isn't right. *Even if* Windows user names are case >> sensitive and so there is a difference between DSMILEY and dsmiley (are >> they?, I don't know) I think $USER should be made to be all lower-case to >> be >> consistent with unix environments. > > It would /not/ be consistent with unix environments. Just because *you* > haven't used one with capitals in usernames does *not* mean they do not > exist. > The Opengroup posix spec quite explicitly allows different cases: > > http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_ > 426 > > > > cheers, > DaveK > -- > Can't think of a witty .sigline today.... > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > > -- View this message in context: http://www.nabble.com/username-should-be-lower-case-for-%24USER-tf2947156.html#a8247784 Sent from the Cygwin Users mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |