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 DE2E5385E009 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon AT yandex DOT ru DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1585398902; bh=+vtFoU6sgn/AlDwX1OqsiPJQSfj45DzKt3SWHLumr0Y=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=jkW3+pxkq6bshJXtp4rxuNvJ8kdGbOThZYO1DfPqlzQScbhA9mO+8dCFbwM+0+TTK IKV3PYefpCCGez6P5ijMaE8rId6I8Ze/DJtqKXwDBoYPrjeaKAZLd/fTWp0iGUli7C h2mmecLB0avd+pSp5nl9P+nOnuOCbThi7rKQncps= Authentication-Results: mxback26j.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Sat, 28 Mar 2020 15:21:33 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <948246853.20200328152133@yandex.ru> To: Jay Libove , cygwin AT cygwin DOT com Subject: Re: shell expansion produces e.g. "ls: cannot access '*.pdf': No such file or directory" in Windows CMD shell, but works okay in bash In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Greetings, Jay Libove! > I've never seen this before. > In a Windows CMD shell, Cygwin shell expansion, for example: > ls *.pdf > returns: > ls: cannot access '*.PDF': No such file or directory > (Indeed, any Cygwin shell expansion, when executed from within Windows CMD, produces this error. See below) > ls *someotherwildcard* (that matches the same .pdf files) DOES return the expected file list. Adding to the previous answers, in regard to "ls *.pdf" vs. "ls *.PDF" from native shell, there's "glob:ignorecase" CYGWIN option that can amend your issue. See https://cygwin.com/cygwin-ug-net/using-cygwinenv.html -- With best regards, Andrey Repin Saturday, March 28, 2020 15:19:24 Sorry for my terrible english... -- 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