[mc] User menu: pattern matching acts not as expected
Jörg Thümmler
listen at vordruckleitverlag.de
Wed Mar 12 10:29:35 UTC 2025
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?
>
>
Hi,
seems it's not a problem of the spaces but of the "nonlocal" chars. It's
possible, your "nonlocal" chars are replaced internally by "?" and this
interpreted as a wildcard...
--
cu
jth
More information about the mc
mailing list