X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F2F1F3851C06 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=plebeian.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=wagnerc AT plebeian DOT com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=plebeian.com; s=default; h=Message-ID:References:In-Reply-To:Subject:To: From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To :Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9wGqhXse3WRFBLXHCBaFFvawLJHORfmEr/yOd4TrB8k=; b=Kkc4Mu7Hrife8Bpop0jMktdTuA j5pC0KSl+IlHMpFebukVQ2kqQOkhSLrmIDWO3RTBxcK3PpkidiONSnY0WJmnj3KJUoTpLqWgWPImc TyPpya09QG71wKCWHDA5MRPLMgwdusOks3k4xtDftm55BIuttPXBUf/TGbTMKI+J79m/VKA1Ms1Fc 8WXa8kZHtxusUUYXIU/Po/XfxOEU1odlleDZnHOR34KhcAGtHnqmFlQtLdHaU4554iUJzm+LlbtIB /38XqR2anx4wZ3mVVX4SW6D+k/bO9Q5/1U9plRD+Ob08NW9X4t0smGomePGco2GJxig9/mwwB4t6o IP+fgK0w==; MIME-Version: 1.0 Date: Mon, 18 May 2020 22:04:53 -0400 From: Chris Wagner To: cygwin AT cygwin DOT com Subject: Re: wildcards don't work in directory with files with odd characters In-Reply-To: <4319b2cc-07c0-8739-f87d-2c2cebbecae7@jeffunit.com> References: <4319b2cc-07c0-8739-f87d-2c2cebbecae7 AT jeffunit DOT com> Message-ID: X-Sender: wagnerc AT plebeian DOT com User-Agent: Roundcube Webmail/1.3.8 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - www16.qth.com X-AntiAbuse: Original Domain - cygwin.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - plebeian.com X-Get-Message-Sender-Via: www16.qth.com: authenticated_id: wagnerc AT plebeian DOT com X-Authenticated-Sender: www16.qth.com: wagnerc AT plebeian DOT com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, 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 AT cygwin DOT 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: , Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 04J25O5N032682 On 2020-05-18 8:40 am, jeff wrote: > I have a directory that has some files with odd files. > I can do a 'ls', successfully. However if I do a 'ls *'' I get: > ls: cannot access '*': No such file or directory > > Here is ls output: > 'Highlander-S03E21-Final'$'\303\251''_Part_I-22.mkv' > 'Highlander-S03E22-Final'$'\303\251''_Part_II-23.mkv' I can confirm this. I've seen weirdo behavior before with Cygwin commands having to interpret wild cards internally. It's probably related to some wonky unicode optimization or incomplete wildcard implementation. This falls under the category of "don't do that". :) Mintty: $ uname -a; cygcheck -c coreutils CYGWIN_NT-6.1 applejack 3.1.0(0.340/5/3) 2019-11-19 13:58 x86_64 Cygwin Cygwin Package Information Package Version Status coreutils 8.26-2 OK wagnerc AT applejack /tmp/wild $ touch 'Highlander-S03E21-Final'$'\303\251''_Part_I-22.mkv'; dir * -rw-rw-r--+ 1 0 May 18 21:46 foo -rw-rw-r--+ 1 0 May 18 21:55 Highlander-S03E21-Finalé_Part_I-22.mkv CMD: C:\cygwin64\tmp\wild>dir Volume in drive C is INTELWINNT Volume Serial Number is 642B-E7BA Directory of C:\cygwin64\tmp\wild 05/18/2020 09:46 PM . 05/18/2020 09:46 PM .. 05/18/2020 09:46 PM 0 foo 05/18/2020 09:55 PM 0 Highlander-S03E21-Finalé_Part_I-22.mkv 2 File(s) 0 bytes 2 Dir(s) 35,887,038,464 bytes free C:\cygwin64\tmp\wild>ls 'Highlander-S03E21-Final'$'\303\251''_Part_I-22.mkv' foo C:\cygwin64\tmp\wild>ls * ls: cannot access '*': No such file or directory C:\cygwin64\tmp\wild>ls f* foo C:\cygwin64\tmp\wild>ls H* ls: cannot access 'H*': No such file or directory Thanks. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple