X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BEA0385E02D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1584988450; bh=7O5m+vydx8l55PSq0sOFOecx3qSVKt8gkUOvLtOfKAU=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=y3AbP+LKH9VxfyM7jrDNECKjzT/09Bkz/tZ6iIx12WAjs3d+26tZPvrfE+Y+DyR9x YmY5JtYkcfItgnPKOyKq6ysvDn2y4597SbKXhWRlVy274sjwf/xznRLHqWoxzWkc9x 3qjIV/nV7OY28wKHHzlMxjJpXUqfauOvvn10Se9Q= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 70AF0385E002 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n95+Csvh7cBac7h5rYr95omRkG+Fj5jkueGlHqCJWMG+0gidLsJoUK2T57cm4R4n67Lp5IFlqNakzxDnaTBSWX9IYdX/oGha7XuKMdGRdimn5Zmqn1paZjdKYWvmLycKVQ/GQFDBWsa8Gl/142tzR/Bs2WTqBPl84jOTXAbMuGwM2DP5iSR/hRND97r+2eS2yU0ltALNaxJkHGeeJKe66cfvEdoNU1t1QrcPB1xt8Vm4er4IJBXSkjLgkcmWjMXACUW7cpm0z1HhK0FwEok0cnjLypmrBVps5DWu4MdZbhMWbvKwZp0aP6mUdN4CPvb5UHgsoL28DafGrq8R+Fc3Vw== 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=KU8Q6OY+z8/7qXlBmo2GPN8mOFJPUM/JI0OhZXMTleY=; b=J3P53HOCw2MoL8INXo9hinpZy+lHfbO+tyCgaKgvhjg+qqkHeBH0sujITlhGeu6BOK4VU0hcrmotzQ3u5t13ePuBZ6qJgEbwewv+/ndOhFt2aYgAiZcIAXphtEBuCQXhFAIWS2vlBlttvOInyfqpnBFxjvbpX0sTEWr7s8Ibxvw6+8bdphZMiv3luq8m3XP9zMSHM22pAFRAX5RsaUdzGy2uPu/k4AXwDGLF0pgXJXI81ZsV+ZmHb4ggeUuSvW5TR48377vdzpIM/edf02Q56eAf6mBmLQjNmWGc3RetcZspXHbb9p1wartAQ90C+l2v0ZJa3vcYrF6yC30WsL/FKQ== 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 To: "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 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: AQHWATt/pWE/bVisBk+xCtgixEJMEKhWf52g Date: Mon, 23 Mar 2020 18:34:04 +0000 Message-ID: References: <1141191582 DOT 20200323204357 AT yandex DOT ru> In-Reply-To: <1141191582.20200323204357@yandex.ru> 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: ff888efc-fa74-4567-c25d-08d7cf58c41c x-ms-traffictypediagnostic: DM5PR13MB0988: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0351D213B3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39830400003)(366004)(136003)(376002)(346002)(396003)(199004)(66476007)(76116006)(66946007)(6916009)(66556008)(66446008)(64756008)(316002)(2906002)(186003)(66574012)(7696005)(5660300002)(26005)(86362001)(6506007)(71200400001)(52536014)(53546011)(81166006)(8936002)(508600001)(4326008)(81156014)(9686003)(55016002)(107886003)(33656002)(8676002)(460985005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR13MB0988; 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: QxY4JZGo3sGISu0mn15DGHo1yewHHyQJ5e1DP1dbX0OgsSn4LrTlvJ35H+AxMvL9qD7dmK6S/pzP9veJbTtUV7m7Q2Lpf3LhhZ2kY7lyebmmxLPK2jjl7iWkGHfXh6KcbS+R2lvR/+J6G1VDfBAsnmVar+IuP3Rigq5LlUMzVM7Vzjc4RQ9PolYoi2Espkug3rKu298NA2gz1U4xtHg24qBxIh3S8Wzzt6VdWRk+F04HKLJlkJLPKXXQ+40iH1GhfYXvi7dJTPQTpjc53PEtP3vuYcwZt4IqOwByhx6I5Mjw7nD7Zw5sZXlOZaxPJMvyIMqzYPh62rRaBbs32UZvsfRvsK7GhW/ypcplMUf352+msf6LVwU6yrILqTPahbf6NZ4b/xzQrtEemKERfeRihsKWcPWaPyIoVveLUueDiAcC6EtwAK8vJyksF4ka5qXEMuoHr15SDY0UdYmfJcwwnCZLAzLX+NNc5Ni49MCvY9AO2hulj6RWiIGm2tGuLBe4 x-ms-exchange-antispam-messagedata: NN0vxrjAFgkykYJ9ysh78yeute+vkWxuJ669ewybxjEKDOR26Kg2pug/1oHlYk3pBLJRFMPiqVaroOFPLf3xBjLwXg+EfY7ylFCARZNX3+ND3fAvvbMIH+6Z5n2OH6stlRtdmylRmpzGV5mtmNHfPg== MIME-Version: 1.0 X-OriginatorOrg: felines.org X-MS-Exchange-CrossTenant-Network-Message-Id: ff888efc-fa74-4567-c25d-08d7cf58c41c X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Mar 2020 18:34:05.0035 (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: RoAkI6ol5FqhO/KdFgUBnrWXy+LP+eku5qJUjOMvCqRe9Jdvk6LZpI75piG76xYM5TZgF1LgdZxRJ6I8/+IAww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR13MB0988 X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_2, RCVD_IN_DNSWL_NONE, 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 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Jay Libove via Cygwin Reply-To: Jay Libove Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 02NIYYHv020662 Hi Andrey, (I have no idea what you mean about "top posting".) `locale` gives the same in CMD as in bash, on this machine as on another machine on my network where I also checked, which also exhibits the same globbing problem under Windows CMD: LANG= LC_CTYPE="C.UTF-8" LC_NUMERIC="C.UTF-8" LC_TIME="C.UTF-8" LC_COLLATE="C.UTF-8" LC_MONETARY="C.UTF-8" LC_MESSAGES="C.UTF-8" LC_ALL= Aha, wait! No, there is one difference: in Cygwin Terminal (which I've never run before today; I've always either just run commands in a CMD window, or run bash.exe first; I'd initially mistakenly assumed that Cygwin terminal was the same as bash-in-CMD, but clearly it's not): LANG=en_US.UTF-8 If I set LANG=en_US.UTF-8 in a Windows CMD window, **then the globbing problem goes away**. I'm not sure how that points towards a solution, but it certainly must be a clue. thanks, Jay -----Original Message----- From: Andrey Repin Sent: Monday 23 March 2020 18:44 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 Greetings, Jay Libove! Please no top posting in this mailing list. > Good suggestion, deleting files one by one. It's not just one file, > but it does seem to have something to do with some file name patterns. > I think I've got it. It's accented characters. > I live in Spain. Spanish has accented characters such as "Asociación". > When I remove all files containing any accented character in their name, the problem goes away. > So the theory now is that the Cygwin argv-processing code has a problem with áccented charàcters ... Compare the output of `locale` in Cygwin terminal and your regular console. Most likely your files have names that do not map cleanly to your console codepage, or locale is not set in the native terminal. -- With best regards, Andrey Repin Monday, March 23, 2020 20:40:57 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