X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=oMWhFioXZmKbB1oA
	9D7uigVJPtr5Ki0DxIrB219+m1mKn/9Y9e4vsDi2znz+SjQLo0Gdkfe9mvbF5UxC
	MzLiRCTejboPn3s1KqKKw5tZPOI270h/L8wcl7xJXZQo01MPFlHsRHZ/einVuM7d
	ewGad5StiuC/gu2QNfg06J27isk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=OFH0ynXryw6msWd524ozKz
	FS6aI=; b=Bux9nQwUG+ps/RJ6z0CZzibKaHdgY++gOXbpIZ/hleq7KXzz/lZC1L
	pZEtNcAzbCM0IwSgRr9ulvdzPGnnTyThJlzmSRPO/3IuXyNnq4A0dbz9D4chMeui
	YwePMi/SHD5hn0oSPYix7jd0lQcAqYszFgOesZsXEuHuI3qXMKK7o=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.5 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Thu, 13 Feb 2014 23:45:16 +0400
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <1075074682.20140213234516@mtu-net.ru>
To: Lord Laraby <lord.laraby@gmail.com>, cygwin@cygwin.com
Subject: Re: Testers needed: New passwd/group handling in Cygwin
In-Reply-To: <CAG9p0OT=MoM4NMM=fi5aZb7+wEiUVNh9Y38hyEgzOSY2+LuWZA@mail.gmail.com>
References: <20140213143849.GH2246@calimero.vinschen.de> <CAAXzdLVtMzdNDdm9-4puB1jJngjONS=Wbq3TXmDrJKDHcBJ5Ow@mail.gmail.com> <952874943.20140213200700@mtu-net.ru> <CAG9p0OT=MoM4NMM=fi5aZb7+wEiUVNh9Y38hyEgzOSY2+LuWZA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Lord Laraby!

> This would be a nice mechanism for typical windows home systems except for
> the format of the cygwin tag that goes in the comment field.

???...

> Home users that utilize 'net user USERNAME "/comment:yadda yadda"' command
> cannot use equal signs on the command line,

That's just not true, unless someone holding their hands away from keyboard,
mouse and every other input device.

> and the entire string has to be quoted to prevent angle brackets from
> messing with redirection.

Well, see the statement above. Simply not true.

> Equal signs are stripped by CMD.exe and the nexted quotes are stripped as well.

> Example: I entered the following at elevated cmd prompt,

> C:\WINDOWS\system32>net user TestUser "/comment:<cygwin check="maybe"
> then="okay>"

But Corinna did not said to enter this.
She told you to enter (in your case):

net user TestUser /comment:"<cygwin check=\"maybe\" then=\"okay\"/>"

Or, using Cygwin shell (console or mintty):

net user TestUser /comment:'<cygwin check="maybe" then="okay"/>'

> The command completed successfullly.

> C:\WINDOWS\system32>net user TestUser
> User name                   TestUser
> Full name                   Test User
> Comment                     <cygwin check=maybe then=okay>
> ...
> The command completed successfullly.

Of course, it did. Computers are very stupid. They do what you tell them to
do, no more, no less.

> So, I do not know how to get the information into the field in the proper
> format.

Exactly as Corinna told you to.


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 13.02.2014, <23:01>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

