On Apr 10 12:39, Warren Young wrote: > On 4/10/2014 09:28, Corinna Vinschen wrote: > > > >The only reason I dislike backslash a bit is, that the backslash is > >the escape char in the shell, so you would have remember every time > >you type in such an account name to escape the account name, > >DOMAIN\\username or "DOMAIN\username" > > Is this DOMAIN\username syntax merely mimicking a Windowsism, or > does it directly translate into a semantically meaningful construct > to Windows? I mean, do you have to parse it and reassemble the data > for Windows' benefit, or do you pass this string straight to some > Windows API?
Right now, since the separator char is configurable, it's of course mimicking and converting to the windows style where required. > If cygwin1.dll must premasticate the string for Windows' benefit, > you can use any separator character you like. In that case, I'd > think forward slash makes more sense, since it says, "This works > like POSIX paths: cygwin1.dll is translating this to something else > for you behind the scenes." Backslash signals that what you're > doing is something Windows understands natively. > > As for your original question, I can't see why you'd need it to be > configurable as long as it's escapable. If you can escape the > delimiter, then you can hardcode it to anything you like, since > there's a path out of any conflict. A local cygwin user told me that the users in their company would probably be confused by the '+ or, FWIW, any other non-backslash char, because they were drilled to see and use usernames always in domain\name form, or even in domain\\user form when logging in to Linux. I like slashes a lot more for obvious reasons. But maybe, and that wouldn't be too hard to implement, we could accept account names with slash and with backslash, just as we do with pathnames. Output of usernames would be with slashes, of course. Well, just an idea. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat
pgpNUvOoDETBW.pgp
Description: PGP signature