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 C5BDE3870891 for ; Mon, 1 Mar 2021 12:23:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C5BDE3870891 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.100] (c-24-62-203-86.hsd1.ma.comcast.net [24.62.203.86]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id B605B401AF5C; Mon, 1 Mar 2021 07:23:24 -0500 (EST) Reply-To: moss@cs.umass.edu Subject: Re: bug in cygstart utility To: John Vincent , "cygwin@cygwin.com" References: From: Eliot Moss Message-ID: <5fea4eb9-27ba-38c9-ec0a-85a6dfdafbaa@cs.umass.edu> Date: Mon, 1 Mar 2021 07:23:23 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; 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: 8bit X-Spam-Status: No, score=-2.7 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: Mon, 01 Mar 2021 12:23:26 -0000 On 3/1/2021 6:17 AM, John Vincent via Cygwin wrote: > Hi, > > I'm running cygwin on Windows 10, using UTF8 in English. I run cygwin bash inside a cygwin mintty terminal. I've noticed a minor problem when using cygstart with wildcard parameters. > > I type: > > cygstart *.??p > > If there is a matching file then everything works as I expect. However if there is no matching file I get an error message as follows: > > Unable to start '.p': The specified file was not found. > > When I look at this using the "od" command I see the following: > > $ cygstart *.??p 2>&1 | od -tx1 -c > 0000000 55 6e 61 62 6c 65 20 74 6f 20 73 74 61 72 74 20 > U n a b l e t o s t a r t > 0000020 27 ef 80 aa 2e ef 80 bf ef 80 bf 70 27 3a 20 54 > ' 357 200 252 . 357 200 277 357 200 277 p ' : T > 0000040 68 65 20 73 70 65 63 69 66 69 65 64 20 66 69 6c > h e s p e c i f i e d f i l > 0000060 65 20 77 61 73 20 6e 6f 74 20 66 6f 75 6e 64 2e > e w a s n o t f o u n d . > 0000100 0a > \n > 0000101 > > It looks to me like cygstart is not outputting the correct UFT-8 for either the * character or the ? character. I think this is a bug. I wonder if the message is coming from Windows rather than from Cygwin ... It's still not great, but might explain how it could be. Eliot Moss