tcsh regex [] error

Bug #1862333 reported by Łukasz Dudek
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tcsh (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

on 18.04.4

~/Temp/t> tcsh --version
tcsh 6.20.00 (Astron) 2016-11-24 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,nd,color,filec
~/Temp/t> ls
1 2 3 4 5
~/Temp/t> ls [2-3]
2 3
~/Temp/t> ls [1-3]
1 2 3

however on 19.10

~/Temp/t>> tcsh --version
tcsh 6.21.00 (Astron) 2019-05-08 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,nd,color,filec
~/Temp/t>> ls
1 2 3 4 5
~/Temp/t>> ls [1-3]
1 2 3
~/Temp/t>> ls [2-3]
1 2 3

which is a problem.

Tags: eoan
Paul White (paulw2u)
affects: ubuntu → tcsh (Ubuntu)
tags: added: eoan
Revision history for this message
Łukasz Dudek (ldudek) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tcsh (Ubuntu):
status: New → Confirmed
Revision history for this message
Cruncher (ubuntu-wkresse) wrote :

This has been bugged since at least 20.04 LTS, and is STILL bugged in 22.04 LTS.
The affected tcsh versions are 6.21 (and 6.22?), the bug was already fixed 4 years ago in tcsh 6.23: https://github.com/tcsh-org/tcsh/commit/4679bde3e1ceca63d6eb4de5ce41c996405e61aa

Ubuntu 23.04 and upwards already use the fixed version 6.24: https://packages.ubuntu.com/search?keywords=tcsh

=> PLEASE somebody be so kind to push this in 22.04 LTS as well - the bug can break all sorts of things, including security-relevant scripts.

Possible workaround until then: manually install a newer version of tcsh (such as 6.24.10-1) from here: https://packages.ubuntu.com/mantic/tcsh

Thanks!
Cruncher

Revision history for this message
Evgeny Stambulchik (fnevgeny) wrote :

I've been hit by this bug badly today in 22.04. I cannot believe it takes 3 years to apply an existing patch. Really, what is the meaning of "LTS"??

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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