delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/03/23/14:34:55

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" <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: <DM5PR13MB08769F2FF197701385BA2A3CCBF00@DM5PR13MB0876.namprd13.prod.outlook.com>
References: <DM5PR13MB087674FC4FC989DE45C41E8ECBF30 AT DM5PR13MB0876 DOT namprd13 DOT prod DOT outlook DOT com>
<CACac1F_rKFLb3dCj-ZQPW3CHo3gATo+H4FD+E+PB6y9d+uKN0A AT mail DOT gmail DOT com>
<DM5PR13MB0876F96583BE7E4C47AF1E09CBF30 AT DM5PR13MB0876 DOT namprd13 DOT prod DOT outlook DOT com>
<CACac1F8ytJYGLkdmE=bm5h5zjp+8U-5=Lky16+xzbozm7soLVw AT mail DOT gmail DOT com>
<DM5PR13MB08766CD92501CEF99CCE6992CBF30 AT DM5PR13MB0876 DOT namprd13 DOT prod DOT outlook DOT com>
<1141191582 DOT 20200323204357 AT yandex DOT ru>
In-Reply-To: <1141191582.20200323204357@yandex.ru>
Accept-Language: en-US, en-IE
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: <DM5PR13MB098858CA725E7EEDCB6F16F1CBF00 AT DM5PR13MB0988 DOT namprd13 DOT prod DOT outlook DOT com>
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 <cygwin.cygwin.com>
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>
From: Jay Libove via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jay Libove <libove AT felines DOT org>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
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 <anrdaemon AT yandex DOT ru> 
Sent: Monday 23 March 2020 18:44
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

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

- Raw text -


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