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=XXyPgJBdsyalkP83
	Aax6P1IED42c3VlvjpaP9pCjb/bMjoaAU8bl9MtwnT2t2jB7CvDsLxiTpmVULPgF
	n37F1cza9dAqIckZh8vjRtwdAXGt6bsY6hiI7Bx11rl59cgLsQirO5eI3k0xnkJZ
	raI/bDG88H3D4A1w1ZOEuL3xK20=
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=NxPYj6MCcUtCPKSvqz6RE5
	hq03g=; b=CyIShnyTxVtxjkLC6q0U3GI27m7WLZ1c8B0SUkXsT9pOxNGaYj6Uer
	KbGYozhkAcLK6g6A+VZHs3/51KtUF/d7aDcSYZmGdE8w+F7On6ZJuZsevI0jGHyv
	OVAxkwJpmB6QPfPes3NsQs4rR1dvfOqHW7rr3BKw5lfrJy2u3zjVs=
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.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Tue, 15 Apr 2014 03:26:58 +0400
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <2410568999.20140415032658@yandex.ru>
To: "Larry Hall (Cygwin)" <cygwin@cygwin.com>
Subject: Re: Windows hostname change fails in recent versions of Cygwin (since 1.7.28)
In-Reply-To: <534C63A5.9040704@cygwin.com>
References: <CAKJ_xGsTh4agckE4LXozZhbEHYmRffy6HWNDYMEJ8ZfkDC=26Q@mail.gmail.com> <534C63A5.9040704@cygwin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Larry Hall (Cygwin)!

>> The following command used to allow me to change the hostname of a Windows
>> machine:
>>
>> wmic computersystem where name=\"$COMPUTERNAME\" call rename name=newname
>>
>> With new installs of Cygwin this seems to have stopped working...

> OK maybe I'm just missing something but what part of the above uses Cygwin?

Shell prompt.
The user were able to execute specific command with previous versions of
Cygwin1.dll, but unable now.

@Wedge, there was some changes around handling '=', which is SUDDENLY
considered a separator character (that is, on par with space) for CMD.exe
batch files parameters.
I can't recall the exact dates, sorry.

Also, is the escaping of quotation marks around computer name necessary?
Try without them.


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

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

