You are not logged in.
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
Looks like that is a Debian package so you will need to report the bug to Debian directly.
Online
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
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
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
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
Well, it looks like the system accepted the second report:
https://bugs.devuan.org/cgi/bugreport.cgi?bug=734
Thanks.
Offline