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=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 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=-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 Reply-To: cygwin AT cygwin DOT com Message-ID: <2410568999.20140415032658@yandex.ru> To: "Larry Hall (Cygwin)" Subject: Re: Windows hostname change fails in recent versions of Cygwin (since 1.7.28) In-Reply-To: <534C63A5.9040704@cygwin.com> References: <534C63A5 DOT 9040704 AT cygwin DOT 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 AT yandex DOT 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