delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/14/19:35:34

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: <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=-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 AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <2410568999.20140415032658@yandex.ru>
To: "Larry Hall (Cygwin)" <cygwin AT cygwin DOT 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 AT mail DOT gmail DOT com> <534C63A5 DOT 9040704 AT cygwin DOT com>
MIME-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019