Question...has this been raised before? why domain\user instead of domain/user?

Eric Blake eblake@redhat.com
Mon Jun 21 21:51:00 GMT 2010


On 06/21/2010 03:26 PM, Linda Walsh wrote:
> Consistent with unix names, where we use forward slash
> instead of backslash (both in file and registry names),
> 
> why do I get an error when I try to use <domain>/user as a user arg when
> <domain>\\user is allows?

Because <domain>\\user is NOT a file name, but a user name.

>  Should I get a
> warning about using a Windows style identifier by using backslash?

No.

>  I
> mean there's been this increasing strictly about getting away from using
> backslash in windows paths,

Yes.  But only for paths (aka file names).

> I'm surprised it's still even allowed in user names, let
> alone, being the ONLY option allowed.
> 
> Isn't this inconsistent?  Any plans to fix this?

I don't see any inconsistency in our handling of file names.  If it
bothers you that user names don't accept slash as an alias for
backslash, then submit a patch - but as I don't use user names in file
name contexts, it doesn't bother me enough for me to want to write a
patch.  So, the question is back at you - any plans for you to submit a
patch to fix this?

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100621/97681fc0/attachment.sig>


More information about the Cygwin mailing list