[mc] User menu: pattern matching acts not as expected

Yury V. Zaytsev yury at shurup.com
Wed Mar 12 10:37:15 UTC 2025


> On 12. Mar 2025, at 11:29, Jörg Thümmler via mc <mc at lists.midnight-commander.org> wrote:
> 
> Am 12.03.25 um 10:10 schrieb Yury V. Zaytsev via mc:
>>> On 12. Mar 2025, at 09:48, Eugen Fabian Karban via mc <mc at lists.midnight-commander.org> wrote:
>>> $ mc -V
>>> GNU Midnight Commander 4.8.22
>> This version is 6 years old, and the current version is 4.8.33. Can you reproduce it with the latest version?
>>> case 4:
>>> filename='file_without_spaces_utf8_nonlocal_chars_à_á_'
>>> debug=Wahr: f [[:space:]]
>>> result=works NOT as expected (WRONG)
>> It's impossible to understand what you mean by "works as expected" and “works NOT as expected". You mean it matches when it shouldn’t match?
> 
> seems it's not a problem of the spaces but of the "nonlocal" chars.

Can you reproduce this?

> It's possible, your "nonlocal" chars are replaced internally by "?" and this interpreted as a wildcard…


How is this even possible? Did you check the code?


More information about the mc mailing list