From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::107]) by sourceware.org (Postfix) with ESMTPS id DE2E5385E009 for ; Sat, 28 Mar 2020 12:35:04 +0000 (GMT) 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@yandex.ru Received: from mxback26j.mail.yandex.net (mxback26j.mail.yandex.net [IPv6:2a02:6b8:0:1619::226]) by forward104j.mail.yandex.net (Yandex) with ESMTP id D56A04A0948; Sat, 28 Mar 2020 15:35:02 +0300 (MSK) Received: from iva7-d5f903270d57.qloud-c.yandex.net (iva7-d5f903270d57.qloud-c.yandex.net [2a02:6b8:c0c:6e00:0:640:d5f9:327]) by mxback26j.mail.yandex.net (mxback/Yandex) with ESMTP id awvaqlobgP-Z20usGia; Sat, 28 Mar 2020 15:35:02 +0300 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 Received: by iva7-d5f903270d57.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id GWZhrD0a65-Z2WO1esN; Sat, 28 Mar 2020 15:35:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Sat, 28 Mar 2020 12:21:33 -0000 Date: Sat, 28 Mar 2020 15:21:33 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <948246853.20200328152133@yandex.ru> To: Jay Libove , cygwin@cygwin.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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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@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: Sat, 28 Mar 2020 12:35:07 -0000 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...