shell expansion produces e.g. "ls: cannot access '*.pdf': No such file or directory" in Windows CMD shell, but works okay in bash

Andrey Repin anrdaemon@yandex.ru
Mon Mar 23 17:43:57 GMT 2020


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...


More information about the Cygwin mailing list