The officially official Devuan Forum!

You are not logged in.

#1 2022-09-18 22:40:03

rmrichesjr
Member
Registered: 2018-12-18
Posts: 25  

Where to report a serious tcsh globbing bug?

Where should a serious tcsh globbing bug be reported?  I'm running Devuan Chimaera with tcsh version 6.21.00-1.1.

In an empty directory, do these three commands:

    touch {a,b,c,d,2}{1,2,3}

    echo [a-d]*

    echo [a-d]?

Each of the echo commands prints this (modulo indentation):

    21 22 23 a1 a2 a3 b1 b2 b3 c1 c2 c3 d1 d2 d3

Each of the echo commands SHOULD print this (modulo indentation):

    a1 a2 a3 b1 b2 b3 c1 c2 c3 d1 d2 d3

The man page says this about a hyphen between square brackets:

    Within `[...]', a pair of characters separated by `-'  matches  any  character lexically between the two.

"2" is _NOT_ lexically between "a" and "d".  Therefore, the filenames that start with "2" should not be in the glob expansion.

This bug can result in files being deleted that should not have been deleted.

Offline

#2 2022-09-19 01:32:32

golinux
Administrator
Registered: 2016-11-25
Posts: 2,604  

Re: Where to report a serious tcsh globbing bug?

Looks like that is a Debian package so you will need to report the bug to Debian directly.

Offline

#3 2022-09-19 09:21:29

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,528  

Re: Where to report a serious tcsh globbing bug?

This might help:

> ls
21  22	23  a1	a2  a3	b1  b2	b3  c1	c2  c3	d1  d2	d3
> echo [a-d]*
a1 a2 a3 b1 b2 b3 c1 c2 c3 d1 d2 d3
> echo [a-d]?
a1 a2 a3 b1 b2 b3 c1 c2 c3 d1 d2 d3
> $0 --version
tcsh 6.24.01 (Astron) 2022-05-12 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec
>

So it's either fixed upstream already or you have something else going on.

Last edited by Head_on_a_Stick (2022-09-19 09:22:00)

Offline

Board footer