glob matching with range in brackets doesn't work properly

Bug #2055698 reported by James Carlson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tcsh (Ubuntu)
New
Undecided
Unassigned

Bug Description

% mkdir tst
% cd tst
% touch a00.x a01.x a02.x a03.x a04.x a05.x
% ls a0[1-4].x
a00.x a01.x a02.x a03.x a04.x

Correct output (seen from my OpenSUSE system which is running tcsh 6.20.00-4.15.1) is:

a01.x a02.x a03.x a04.x

In other words, "a00.x" shouldn't match the glob expression "a0[1-4].x". Last I checked, 0 isn't located anywhere between 1 and 4, though I guess I could be wrong. Interestingly, matching works properly on Ubuntu's 6.21 tcsh if I don't use a range:

% ls a0[1234].x
a01.x a02.x a03.x a04.x

So it seems to be specifically a problem with ranges and not with brackets themselves.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: tcsh 6.21.00-1.1
ProcVersionSignature: Ubuntu 5.19.0-45.46~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-45-generic x86_64
NonfreeKernelModules: socwatch2_15 vtsspp sep5 socperf3 pax zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
CurrentDesktop: KDE
Date: Fri Mar 1 09:30:15 2024
SourcePackage: tcsh
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.default.apport: [modified]
mtime.conffile..etc.default.apport: 2023-07-06T13:53:10.386844

Revision history for this message
James Carlson (carlsonjma) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.