shell expansion produces e.g. "ls: cannot access '*.pdf': No such file or directory" in Windows CMD shell, but works okay in bash
Tue Mar 24 07:57:12 GMT 2020
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?
>> 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.
More information about the Cygwin