Bug 25341

Summary: tcsh 6.21.00 globbing of character ranges is broken
Product: Mageia Reporter: Ralf Brown <ralfbrown>
Component: RPM PackagesAssignee: Christiaan Welvaart <cjw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: cjw, geiger.david68210, mageia, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: tcsh-6.21.00-1.mga8.src.rpm CVE:
Status comment:

Description Ralf Brown 2019-08-22 15:03:07 CEST
When using a character range such as [2-9] on the commandline, it matches files containing other characters at that position.

Example:
    touch a_0 a_1 a_2
    ls a_[2-9]
displays all three files instead of just a_2 as expected.
    ls a_[a-z]
*also* displays all three files insted of a "no match" error.
    ls a_[0-1]
works as expected, so it appears that "[X-Y]" is effectively "[\0-Y]"

Globbing in tcsh 6.20.00 from mga7 works as expected.
Comment 1 Marja Van Waes 2019-08-24 19:41:37 CEST
Assigning to all packagers collectively, since there is no registered maintainer for this package.
Also CC'ing some committers.

CC: (none) => cjw, geiger.david68210, mageia, marja11
Assignee: bugsquad => pkg-bugs

Comment 2 Christiaan Welvaart 2019-08-25 19:22:52 CEST
Thanks for reporting this problem. It was already reported upstream and fixed in upstream git, and now it is also fixed in cauldron with tcsh 6.21.00-2.mga8 .

Assignee: pkg-bugs => cjw
Resolution: (none) => FIXED
Status: NEW => RESOLVED