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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=yqAAEPT4pf00oQ9o3g7OG3yAfulwmgtoqAby2sMoUA0QNM6ebgeFB t1LrNkKd6RyXKM/nzd9yVn4R5sUjkJJ7MgwhZVFYQFWsC8FgPoe4m8WWxXI8GucK Izx6+Pxfb62JOoM9rlj9hM2Q/GBOkevwS2vffxx0QKs6VZuQh+GpII= 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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=RFfZ2JmDm1jSQNl8UWiYsgqSfGo=; b=jlbZ9eatClHx2Amo7HFHv2I6aKOF 70Hs6JHtlH0vvQ3hVaO31o+mQmpTlXNQEr4kVw3P51dfA/OpP88aYc3xLUCIUAA1 dQWx77JDn6AyTw1fXcODa+aaN4c+H+n6IqKR7A1IpYdKDe+pmToXbkS9oU1vXbyv 9HXTDaDnFvotwlE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Thu, 13 Feb 2014 20:33:54 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Testers needed: New passwd/group handling in Cygwin Message-ID: <20140213193354.GO2246@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20140213143849 DOT GH2246 AT calimero DOT vinschen DOT de> <952874943 DOT 20140213200700 AT mtu-net DOT ru> <52FD11A3 DOT 2090002 AT cygwin DOT com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qYrsQHciA3Wqs7Iv" Content-Disposition: inline In-Reply-To: <52FD11A3.2090002@cygwin.com> User-Agent: Mutt/1.5.21 (2010-09-15) --qYrsQHciA3Wqs7Iv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 13 13:40, Larry Hall (Cygwin) wrote: > On 2/13/2014 1:33 PM, Lord Laraby wrote: > >Subject: Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header > >declaration changes ?) > > > >This would be a nice mechanism for typical windows home systems except f= or > >the format of the cygwin tag that goes in the comment field. Home users > >that utilize 'net user USERNAME "/comment:yadda yadda"' command cannot u= se > >equal signs on the command line, and the entire string has to be quoted = to > >prevent angle brackets from messing with redirection. 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: >then=3D"okay>" > >The command completed successfullly. > > > >C:\WINDOWS\system32>net user TestUser > >User name TestUser > >Full name Test User > >Comment > >... > >The command completed successfullly. > > >=20 > Corinna's email with a description of this entire mechanism recommends th= is > syntax: >=20 > > CMD example: > > > > net use corinna /comment:"" >=20 > Does that work for you? Sigh. I read my mail at least 6 or 7 times, but never once it occured to me that I mistyped the commands. It's `net user', of course, not `net use'. Oh holy na=C3=AFvet=C3=A9. So again, either use net user corinna /comment:"" from CMD (double quotes, escaping double quotes in the string) or net user corinna /comment:'' from bash or tcsh (single quotes around the string, no escaping of double quotes inside the string). You are aware that you can start a Cygwin shell elevated as well, right? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --qYrsQHciA3Wqs7Iv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJS/R4iAAoJEPU2Bp2uRE+gazQP/i9zpXoOyyJ2lcINXrZDjLVn uh6j12L1gTDzLnbYHMXhEpezt53dvTSTOEkqYG0ep1b2YAHbqTXxsE+W+H3gs6vt jnYol3urtNmmX7sEbMFmTgxE1oH67TQVsjfyxIvhe5GNrvQpby1lIbW3JFQSi4pD cqdxDtGJ3Ura/V5zzQbj5Opt+iGGj6QAt/vctb8ele2HU6ug8KKAFbZdWXcKLa5y mPe/S8XOmiPsoE1FCOjIrI0nIm/e9h/12739Gh9NRkT8UOfmz9RS0wqzr8VtHuOK iUr1QysVB+1YBPQi6GvcRWItju5Kdb5ALki5n1Rh8woJ5UMyUf58P2ComzqYQmto YRDTpJ/M6tryKRzQAII5jfwsMzG8zv2bhOq5GrXeucNxPmKeFoF6m8J97K5UKOub Gk3uiBBPHIGtb5g8pPD8LLUxf8mIRkQVu6QPODLfPD32lT8O6lWZ1Ef1VHU9xGJH b2F6ZrL6wNDoeS0W7yTLSoBzaiopzkMoUQ9XbYwrIQd9GZSx1ynDaENeWGDYzKxE 4D1m7xCD6i1+BmFm/mgeJteLki1Vq/04UrDNprbFBLvbrTvqambklb5S6c7VyMEG lh/2Eb8rVWLkzLRp4h+HJRVBHsZu74ASrrpFncdhouRr1J5I4S7OiDSwoeEf4QD4 kT0VrBIkAr2/XAv8Q68s =C5Tv -----END PGP SIGNATURE----- --qYrsQHciA3Wqs7Iv--