The officially official Devuan Forum!

You are not logged in.

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

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

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: 3,137  

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: 3,125  
Website

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)


Brianna Ghey — Rest In Power

Offline

#4 2022-12-30 04:09:20

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

Re: Where to report a serious tcsh globbing bug?

Thanks for the replies/help.  The full package list for testing shows 6.21.00-1.1, the same as I'm using on Chimaera.  Oddly, the full package list for Chimaera doesn't show either csh or tcsh.

What would be the method to request a fixed version or a patch fix be considered to include in the next release?  Would that have to go through Debian's wish-list request system?

Offline

#5 2022-12-30 13:31:39

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Where to report a serious tcsh globbing bug?

Just file a bug report against the package. The maintainer will decide if it's serious enough to warrant a backported patch.


Brianna Ghey — Rest In Power

Offline

#6 2023-01-04 03:49:14

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

Re: Where to report a serious tcsh globbing bug?

Tried to use the reportbug tool to send the bug report.  The tool refused to send it.  (I should submit bug reports against reportbug.)  In the end, I manually edited the saved draft report and emailed it manually.  After at least one automated rejection, I hope I can find a way to get the bug report filed.

Offline

#7 2023-01-04 03:53:11

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

Re: Where to report a serious tcsh globbing bug?

Well, it looks like the system accepted the second report:
https://bugs.devuan.org/cgi/bugreport.cgi?bug=734

Thanks.

Offline

Board footer