This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Windows to Cygwin username mapping: Domain before local account when duplicate name?

On 2019-02-16 08:33, Corinna Vinschen wrote:
> On Feb 16 08:09, Brian Inglis wrote:
>> On 2019-02-16 02:45, Corinna Vinschen wrote:
>>> On Feb 15 14:51, Bill Stewart wrote:
>>>> On Fri, Feb 15, 2019 at 2:38 PM Brian Inglis wrote:
>>>>> Windows normally allows "." to be used to refer to the local machine name in a
>>>>> domain context - can anyone confirm or deny whether this works in Cygwin or with
>>>>> getent?
>>>> AFAICT, the "." shortcut does not work in Cygwin.
>>> The combining operator for domain prepended usernames is '+'.  This
>>> is the same character as used by good old Interix for the same purpose.
>> That was not in question - the question was could .+$USER be used in lieu of
>> $HOSTNAME be used in such contexts?
> Yeah, I misunderstood this, sorry.  The answer is no.  The username is
> fixed.  Otherwise you'd have two auto-generated passwd entries for the
> same user which may lead to confusion (not necessarily confusion on the
> user side...)
> If this is a desired feature, we could try this, but it might break
> existing setups again.

As with .\$USER in Windows or with ~ for $HOME, this should only be a
convenience to allow input or scripts to avoid providing $COMPUTERNAME/$HOSTNAME
in userid command line argument contexts.
Should whether $COMPUTERNAME/$HOSTNAME be output as . in userid contexts be left
to each app?

Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

Problem reports:
Unsubscribe info:

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