From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by sourceware.org (Postfix) with ESMTPS id 11F78385B834 for ; Tue, 24 Mar 2020 07:57:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 11F78385B834 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo@towo.net Received: from [192.168.178.45] ([95.90.246.248]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N17cq-1jNgw63MmA-012bOX for ; Tue, 24 Mar 2020 08:57:12 +0100 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 To: cygwin@cygwin.com References: <1141191582.20200323204357@yandex.ru> <861475261.20200323221300@yandex.ru> From: Thomas Wolff X-Tagtoolbar-Keys: D20200324085712421 Message-ID: Date: Tue, 24 Mar 2020 08:57:12 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <861475261.20200323221300@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:0mSlEC1uYtcVJ+bsj+w5/f6C9vkvW7qfZEKDdfY2uceLvu8S3Rw YxIQ3KRW4+A5zQQjaUXEB12o0Gyspzxf7emCK2hCCnvPTLmgjbgA2o6u2gjcoC/dQsOPXbW +s2j9RkWA5IGYRAWLhOFtdBtus1yiMgJfk1PwyM65jzRo03d2s6oGEOOvFuHTXm/7m7krjr XCcTw7slAEAxftlxw0VNg== X-UI-Out-Filterresults: notjunk:1;V03:K0:bZXAPAjaZwM=:qgetV5OP/7PfqNZKb3J/dY r5caL7h8fLYGeT1ZaZIHa2cndPgszuu+DpM2W3PJk+ne97yalCK6Z6A5tcQZyUtsPMJYEEzGC Fvmn9meR/MmkG8UU2ifn9z0o4Z04bcyfDP8wRk0nevgCwbK3bDTV7C2bxt3AmNFToNiFSkmrn R0D6F/76+x+/zUmEEMKFjvK286I3wXsxl/5C23YxKtRQvOuzpkMjJwfmSX7CHhdFQISCHr0NZ /s+ivyv9yukzVNIWgX/CwC9LhyAL6yoIE3bGqBWOygQG77oNRHZiR9atbzWAt+ilyMdrXnjeC KMLa8GAr6384LY00dU0o9UA+SC3KaXRYJQmZ3LqsDhShiAkVkyqsIbZG56Ah3fkWp5W5/p2ow ipwUCXZ8sH6flT9lnvsTn80x3evhXsTBo+KERP1Yiabk/s+NE4Pt3SLwcEMVJ1NEwaoKvqaLE npLkhV6RGz1F0HMj/9RO4vXQNh41xuuTGioQdMLo4syX1qQSj8KKkTfPvQD7bRqizBsmiETgs 6+VtzoIhY6WJvKhXdNIC/gaMNZHmRGZM9s9uwScBigOfXpMwmJcRoIteMaHVsrwAWBRcXS/Fw iIqbcr7yHbPfFvflxN2A52Q1VjAlg2q6o6whOr3CtNqm+uLBsRKPb0MXQP4cEIrLpBCop3qQH JI+AlwoPRxQO9HoRr0atkI1ULTcwS3IRvux1sXPhxEUXcP2zZxB9pK13CAjmrF5K1t2D78Nod JpsuFr1Vm9TtJ73mrbbLaKzC1DGRg2eT4eUGH1ZtMFyLcisx70Yv1OE+/iMu5Ll8q7gYG1qQw wSjs0TWjfrpTxwl3VaG9ukPnPgAJvCre14t3+GOvoKxO9pp25w= X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * 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: Tue, 24 Mar 2020 07:57:15 -0000 Am 23.03.2020 um 20:13 schrieb Andrey Repin: > Greetings, Jay Libove! > > ... >> If I set LANG=en_US.UTF-8 in a Windows CMD window, **then the globbing problem goes away**. I was about to respond that cmd.exe does not do shell expansion but in fact there is a cygwin workaround to replace it with library-run expansion. Maybe it's done before the locale is set up in cygwin dll? Could the order be reversed? Thomas >> I'm not sure how that points towards a solution, but it certainly must be a clue. > I have LANG=ru_RU.UTF-8 set in the user environment, but i have an autostart > script for cmd.exe to set LANG=ru_RU.CP866 when I want to work in plain > command prompt. But then again, I have code in ~/.bashrc which would > > 1. chcp 65001 > 2. export "LANG=$(locale -uU)" > > which helps transitioning from native applications to (saner) Cygwin environment. > >