From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by sourceware.org (Postfix) with ESMTPS id 15631385701E for ; Thu, 8 Oct 2020 00:59:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 15631385701E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=moss@cs.umass.edu Received: from [192.168.0.16] (c-24-62-203-86.hsd1.ma.comcast.net [24.62.203.86]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id A45F44023B85; Wed, 7 Oct 2020 20:59:21 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: Unconsistent command-line parsing in case of UTF-8 quoted arguments To: cygwin@cygwin.com, Brian Inglis References: <634821436.20201004141809@yandex.ru> From: Eliot Moss Message-ID: Date: Wed, 7 Oct 2020 20:59:21 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2020 00:59:23 -0000 I think what we mean is that, under Windows cmd, some things the shell does for you under Linux and Cygwin will not have been done. For example, there is "glob" expansion of filenames. If I write *.txt under bash, it gets expanded to a space-separated list of names of files that match that pattern. This happens _before_ calling my program. If the program is run from Windows cmd.exe, the program will receive an argument *.txt, and it will have to do the "globbing" itself. Etc. Regards - Eliot Moss