delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/13/13:41:18

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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=He3VgfB0JPJN8LMe
Xl7mxXHsGk+X28uAYf/sT4FN/qs84elKk/ejCeImmSgEgcbHaElS2JRugQbpX8/k
bl1lieNFLNXeirswxdj0dxbRdgvjE1lKDHm6Aejl4TIX3CyUhF8ysE2PKIbnQN1F
aGmVlCB5v+fn/IqvgOktNq3MQk8=
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:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=ldkFjCRdMDSmoWPvcWPR6B
WP470=; b=rcR0H9ODYRMfE/aLWxuGrkGU29xY1VT6HXoQmMpjK7RiErDVHDDMKV
zblQawsWNYiQSYap+v8nz2St1OPA7dHxLhCLwQrJVDSHcUjHLNFjr41bM1sgbzdN
/AnU8sxIRotrqwSFJOXjIEJCdmTz11iXhpzfhy8ZIQZ4wEsWD5jI0=
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=-0.6 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173025pub.verizon.net
Message-id: <52FD11A3.2090002@cygwin.com>
Date: Thu, 13 Feb 2014 13:40:35 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Testers needed: New passwd/group handling in Cygwin
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>
In-reply-to: <CAG9p0OT=MoM4NMM=fi5aZb7+wEiUVNh9Y38hyEgzOSY2+LuWZA@mail.gmail.com>

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 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, 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:<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.
>

Corinna's email with a description of this entire mechanism recommends this
syntax:

>    CMD example:
>
>      net use corinna /comment:"<cygwin home=\"/home/foo\"/>"

Does that work for you?

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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