tcsh filename pattern matching fails

Bug #1898383 reported by Harry G McGavran Jr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tcsh (Ubuntu)
New
Undecided
Unassigned

Bug Description

TCSH filename pattern matching bug --

To reproduce:

1) Make a subdirectory

2) cd to that subdirectory

3) create or touch the files x1 x2 x3 x4 x5 x6 x7 x8 and x9

4) execute the command:
      "echo x[7-9]"

You will see all the files echo, NOT just x7 x8 and x9...

/bin/sh and /bin/bash still do this correctly... but tcsh seems broken!

Description: Ubuntu 20.04.1 LTS
Release: 20.04

tcsh:
  Installed: 6.21.00-1
  Candidate: 6.21.00-1
  Version table:
 *** 6.21.00-1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Alain (alainth) wrote :

Pattern matching is broken in numerous ways in this version.
For example:
echo .[a-z]
will match .. in a directory, which it should definitely not!
Any other shell available does this properly.

Revision history for this message
Michal Szymanski (msz-astrouw) wrote :

Ubuntu Maintainers, please fix that nasty bug ASAP. It is a serious bug, easily leading to, e.g. accidental, unwanted deleting of files.
For an unknown reason, Ubuntu keeps distributing this buggy tcsh 6.21 version although it was fixed already in 6.22 released in November 2019. There is now version 6.24.1 and Ubuntu 22.04 still ships with 6.21.

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.