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:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=uwhVWq9pIjCXwRBw6tNxuo651/6GB c7rNUk0+1AMAkpnT1sDg434s4zw1dYeHl2mzhCbBCeMHCrmE8QZDqE8iSJX4BSpr 9mbLPbFn+0Uqb3+46VqocpxWjlPwFnC+dFr6yr3MQfERSGxKtQk89WOcJfyUxuL/ m51ZiEdtVEVJAk= 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:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=lJJWDhPgYxEEKKELWVuX0GtewCQ=; b=JxV cWElZyyhDpkoTOwHyJdMLWpxTSX7K5pdImH1JySj/1bxrcNCseiUk97yvpCNDEyV o2YVMQIgWNGWZJ5lgP3qT2nLAINxZn9ASSp0IZlHY0AtXWbli1UtLp6BtuOYuUmZ rXqUTIQ6KZ+nEe3dhTl7cinpxpu/569vSc349Gko= 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-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,MIME_BASE64_BLANKS,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1227 X-HELO: tussmtoutape01.symantec.com DKIM-Signature: v=1; a=rsa-sha256; d=Symantec.com; s=1; c=relaxed/simple; q=dns/txt; i=@Symantec.com; t=1548201886; x=2412115486; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4dDSBevzZp9xVCsGy61SWe8VvFV7fugmVQ1INYGCmok=; b=foQjwqPtJ/EEPU+H6wAAwcLlhl6On6Sk38Mxz5ps4B87M6PG0a0ts+/CkwSmAkPi 7xxk3Z6Jr1xa7HNKSozbeAIinlomz7QSv5SEqKtdg1Pw1JcLtKe/jagyACJESxy5 A1sHi7e7Y2lFLAAikiaIqa4UeXaCh8pDmG81Hmzaa0A=; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=symantec.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4dDSBevzZp9xVCsGy61SWe8VvFV7fugmVQ1INYGCmok=; b=SHP6YNTdGJ0uIFUeA26xiUpo1kAR57d4N6Wvr61fJ/C+aBsZjjRK467HO0S91vOcqKdEmvck6OXeBNeGJ1+iSBxQarBx7xQcTDjRxC7J/qvkY9yVJGugqA+9Xo1MwyNWbU8l9Fv2XAJ2DUH0EqR8xml2fx1JJbX2oNL7Y8GRQKE= From: Gordon Grimes To: Eric Blake , "cygwin AT cygwin DOT com" Subject: RE: regtool 2.11.1 need a way to specify leading "-" in values Date: Wed, 23 Jan 2019 00:04:43 +0000 Message-ID: References: <668589bf-266f-c995-6e8c-61af56a8a28a AT redhat DOT com> In-Reply-To: <668589bf-266f-c995-6e8c-61af56a8a28a@redhat.com> received-spf: None (protection.outlook.com: symantec.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Gordon_Grimes AT symantec DOT com; x-ms-exchange-senderadcheck: 1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x0N05h1o005992 Perfect! Thanks much, Eric. -----Original Message----- From: Eric Blake Sent: Tuesday, January 22, 2019 6:21 PM To: cygwin AT cygwin DOT com; Gordon Grimes Subject: Re: regtool 2.11.1 need a way to specify leading "-" in values On 1/22/19 5:12 PM, Gordon Grimes wrote: > I believe there is no way to specify values with leading "-" in regtool. I expect the same applies to keys. An "end of switch processing" switch would be useful, forcing 'regtool' to interpret all remaining arguments literally. Fortunately, you are mistaken. regtool uses getopt_long(), and therefore, like all other programs that use this, automatically inherits the POSIX rule that '--' is the marker for "end of switch processing". > > Example: > % regtool -s set '\HKCU\Environment\MAVEN_OPTS' "-Xms512m -Xmx3072m -Dcom.sun.management.jmxremote" > regtool: unknown option -- X > Try `regtool --help' for more information. Try: regtool -s set '\HKCU\Environment\MAVEN_OPS' -- "-Xms512m -Xmx3072m -Dcom.sun.management.jmxremote" -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org -- 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