From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2088.outbound.protection.outlook.com [40.107.237.88]) by sourceware.org (Postfix) with ESMTPS id AE29E385E008 for ; Sun, 22 Mar 2020 17:50:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AE29E385E008 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PoBf9aoIN+H0UId5RqEVg4hdj97HWPTTD9sJG//b5J79AZMau7Ymjvoz0sBbn6GC+yctflfhxTMSWalLTUgcmRL3J1wvifBPQLSM5Cd7o02JXrApGhfFqCpXWxjIHZj9W7IAkfpy2FMBs4ivS6jGUH3xOoU2nP8a8qYrkhsAIZcbwB1FDvKLeXi+Ovt9zK0AFalpXLtr7V7XauEyF2u0plQh+h4jM8jhhKm2xa+f6njj2xzrE4ZfJMrJHT6hkYtjTp2ISaWpW3dyefIOBl7X1f6osEhH3hImCBuFR96GnplqcAgVHeH4bdTt2FtVxe0Cx+hr959FN0tblrEML1LChA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OWPMIJBe1fa35A+mrNG28y5JpKdvhoq8qI3pCkn82N4=; b=JC6wxB8cUqq0S+p+GKh+Y2LgWxGxcP5VFTiWP2yycm4ay5fjp59z8LegGXGiLlcG8rSlKxMKZbaA0fEyrmHbAqCJwTgYMJSG42xvafA6p8KFn2CY4WpVgE/C9U6RlA0wilj2hTHjdhyPwZLWOYYJXItANBhGTWMXDD/m4b6BDPeCHOFnKg/XmHLrB9bQSN7tuoPffx4ZVJ9nbbM2a8wLxiUFqAbjJuvyBl2lWJCdQoD0RNrLcIKjImQjfhjlJeVG2CeN6dw9c6rqgdnj3pvCMqr3YnnpoksomcROoQqEVMR3Dt1g3Qm8vvKCUy+cfA+gBmKz5JFrtoiXjtI1acDUOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=felines.org; dmarc=pass action=none header.from=felines.org; dkim=pass header.d=felines.org; arc=none Received: from DM5PR13MB0876.namprd13.prod.outlook.com (2603:10b6:3:2::24) by DM5PR13MB0889.namprd13.prod.outlook.com (2603:10b6:3:2::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.15; Sun, 22 Mar 2020 17:50:52 +0000 Received: from DM5PR13MB0876.namprd13.prod.outlook.com ([fe80::51a9:9a08:2fa6:d7ad]) by DM5PR13MB0876.namprd13.prod.outlook.com ([fe80::51a9:9a08:2fa6:d7ad%6]) with mapi id 15.20.2835.013; Sun, 22 Mar 2020 17:50:51 +0000 From: Jay Libove To: "cygwin@cygwin.com" Subject: shell expansion produces e.g. "ls: cannot access '*.pdf': No such file or directory" in Windows CMD shell, but works okay in bash Thread-Topic: shell expansion produces e.g. "ls: cannot access '*.pdf': No such file or directory" in Windows CMD shell, but works okay in bash Thread-Index: AdYAcaHtFmC5T7LLSdSQBdKKoeqlcg== Date: Sun, 22 Mar 2020 17:50:51 +0000 Message-ID: Accept-Language: en-US, en-IE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [79.158.217.246] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e35c8be0-0fca-4629-4c82-08d7ce899013 x-ms-traffictypediagnostic: DM5PR13MB0889: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0350D7A55D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39830400003)(376002)(136003)(346002)(366004)(396003)(199004)(71200400001)(55016002)(9686003)(5660300002)(76116006)(8936002)(81166006)(66946007)(81156014)(66556008)(66446008)(6506007)(8676002)(52536014)(64756008)(66476007)(7696005)(508600001)(86362001)(316002)(186003)(107886003)(6916009)(33656002)(26005)(4326008)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR13MB0889; H:DM5PR13MB0876.namprd13.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; received-spf: None (protection.outlook.com: felines.org does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: bl4oUEdlJ+X28d9XFCcjJqZEu+fn505NvEnqgH+LU5ocvr6qz8GKWz1K7/71HG4uJdJund8iMD57lyiUrI1R3XwHLVLhpLmbdk3mNix4IuzbYYKfxk/oA6syYSZPcFgjp0pRUYO4rG2c6YFIqsRMBaTO81zqQXtJQmg0gjj6KFFjpjyG+JRSmr8rgYbwDQEY4LpITkXk0kfZNzf/RQdkqgFxGNt//3AisRXJYubtBCVvrzEdOSowk6P2kCWACDiT0IEBmJzFRmjzEjMFJ+Pgx+kQk1awGnu6RDYCijNJiuXkNXr8YfFK8PRIY9nxWPX4IIA8r9qWcLukFXO1QDA7mhNcKpKLoWAB3TaXFelRIzBEeI76swYNZlX5xBvkHHWmOhpB2bM157iywiBzwuEDjp+NvuXY9UrHSaEGWOg3qCzOBWLYHW2kruDnqdVwlbef x-ms-exchange-antispam-messagedata: rT6RBgJBzO4c11mpwkiyxeQymQr9Ia6+FG6JAEU5Jk+2u0BvMmO1tNrmSy4KSW4yg1aXxg+ZafcwtF3rjPTwWJF4uOKl7hiARj7cd2Gff/1YKu30huVtTNYnrrNWe4AmkhQ1HKOVjeBRHYfafmVqOg== MIME-Version: 1.0 X-OriginatorOrg: felines.org X-MS-Exchange-CrossTenant-Network-Message-Id: e35c8be0-0fca-4629-4c82-08d7ce899013 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Mar 2020 17:50:51.8090 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6b966328-4f54-442a-8412-308a6127c06b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: GOYH84xct7eR8BgilimX9oLKfKauU98F8O+Knzn03mrfuY5RRBJLFzZ8/BB+/NjVNtzAd0Et1n/B16b3qE/RHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR13MB0889 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2020 17:50:56 -0000 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 e= xpected file list. Example: C:> DIR *.pdf Volume in drive C is C Volume Serial Number is 8674-712A Directory of C:\Temp 22/03/2020 18:30 1.675.954 test.pdf XX/XX/XXXX XX:XX {Any many other .pdf files} Yet: C:> ls *.pdf ls: cannot access '*.pdf': No such file or directory And: C:> bash user@hostname /cygdrive/C/Temp/test $ ls *.pdf A.pdf B.pdf {etc} And, not ALL of the *.pdf files in the particular directory where I've enco= untered this trigger the problem... C:> ls N*.pdf N.pdf C:> ls A*.pdf ls: cannot access 'A*.pdf': No such file or directory Nor do all directories containing .pdf files produce this. Of the many thou= sands of files and directories that I have, only some produce this problem. In others, ls *.pdf works perfectly in Windows CMD. I've looked at the Windows ATTRIB and CACLS of the files in directories whe= re this problem occurs. They're all the same. That is, uniform across all files and directories. No= thing interesting. It's not just 'ls': C:> cat *.pdf cat: '*.pdf': No such file or directory So, it appears to be Cygwin shell expansion, when executed under Windows CM= D, which is provoking this strange behavior. Any ideas what could be causing this, and how to solve it? many thanks, Jay