delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/13/14:50:28

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
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 AT yandex DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1075074682.20140213234516@mtu-net.ru>
To: Lord Laraby <lord DOT laraby AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Testers needed: New passwd/group handling in Cygwin
In-Reply-To: <CAG9p0OT=MoM4NMM=fi5aZb7+wEiUVNh9Y38hyEgzOSY2+LuWZA@mail.gmail.com>
References: <20140213143849 DOT GH2246 AT calimero DOT vinschen DOT de> <CAAXzdLVtMzdNDdm9-4puB1jJngjONS=Wbq3TXmDrJKDHcBJ5Ow AT mail DOT gmail DOT com> <952874943 DOT 20140213200700 AT mtu-net DOT ru> <CAG9p0OT=MoM4NMM=fi5aZb7+wEiUVNh9Y38hyEgzOSY2+LuWZA AT mail DOT gmail DOT com>
MIME-Version: 1.0
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 AT yandex DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019