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:subject:to:references:from:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=NaI3wmXRRpX3C7LD iLMhXln8eZpFKoANDDECP1ZBLhwyqf7p63bE+1FyZwb+BIwbhQtq+rsUbEvnfNoG msJw55/IqBv6cO+2xsVU5pRyNePqF2Xl3xgdl0PNU7j2vE6Pxzn6opdo+af4txQW vqtZTlx+k9h7Zk0FI5492YyGPi0= 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:subject:to:references:from:reply-to:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Ot3d5MAAsws3bn6Ds8MXdm Fv9Ps=; b=HD1YwJ5tTYpPM0fz+9MFtqgLjg4cq6p7k2FCvCWzpB5aPyZvF5bpu7 LxFLNyoQUeZYP8y1kgqXFZj6mvAuvj0mGCUBshtciWtyqvCsI3XTit6qsSK0QOw+ zYCGBpu77qJ1ewekF+3F8ypRHn7XnFf+A3/DcN/DEb3kfpPo0VSvA= 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=1.4 required=5.0 tests=BAYES_00,BODY_8BITS,FREEMAIL_FROM,GARBLED_BODY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=UD:mail.ru, downloads, UD:ru, H*u:6.1 X-HELO: smtp3.mail.ru Subject: Re: Quotes around command-line argument that has unicode characters are not removed To: cygwin AT cygwin DOT com References: <08d9621d-b9a0-c0d7-b58b-581ab957a08c AT mail DOT ru> <1547310513 DOT 20180322142446 AT yandex DOT ru> From: "Dmitry Katsubo via cygwin" Reply-To: Dmitry Katsubo Message-ID: <0986bb16-42ed-924f-598f-84c3b8ce8997@mail.ru> Date: Thu, 22 Mar 2018 22:05:45 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1547310513.20180322142446@yandex.ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Authentication-Results: smtp3.mail.ru; auth=pass smtp.auth=dma_k AT mail DOT ru smtp.mailfrom=dma_k AT mail DOT ru X-7FA49CB5: 0D63561A33F958A51E00D3D5AF0B9CA81A8FD8356C711E05F051C31AE2E87B56725E5C173C3A84C321259270BBF67A209133670C47C8CD571D6A3D1828C12CDEC4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F05F538519369F3743B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: 6DAAA20F2058E07D134D6D8D77B89E7F26394FDD22EB44418089A98F7E68F940C9E3AB9ECB1E5BFA501E7C294F69090ED50E20E2BC48EF5AE609D43F356B221EEAB4BC95F72C04283CDA0F3B3F5B9367 X-IsSubscribed: yes Note-from-DJ: This may be spam On 2018-03-22 12:24, Andrey Repin wrote: > > This is not cygwin, this is bare Windows. This is executable linked against cygwin1.dll. I personally call such binaries "Cygwin programs". However it is run from Windows. > Parameter unquoting done by the shell. > CMD does that differently from POSIX shells. CMD does nothing when you execute a program from it. Command-line is passed literally. I've download procmon.exe [1] and filtered by process name "cmd.exe". When I run D:\cli> test abc "текст\" плюс.txt" (suppose that CMD will at least remove backslashes) I see the following in the log: test abc "текст\" плюс.txt" [1] https://docs.microsoft.com/en-us/sysinternals/downloads/procmon -- With best regards, Dmitry -- 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