delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/03/28/08:36:01

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 <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <948246853.20200328152133@yandex.ru>
To: Jay Libove <libove AT felines DOT org>, 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: <DM5PR13MB087674FC4FC989DE45C41E8ECBF30@DM5PR13MB0876.namprd13.prod.outlook.com>
References: <DM5PR13MB087674FC4FC989DE45C41E8ECBF30 AT DM5PR13MB0876 DOT namprd13 DOT prod DOT outlook DOT com>
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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <http://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019