[Tcsh] tcsh-6.21 globbing bug

Nelson H. F. Beebe beebe at math.utah.edu
Tue Nov 26 14:53:26 UTC 2019


A local user reported an irregularity in file globbing in tcsh-6.21
that is absent in earlier versions.  Here is a reduced example that
demonstrates the bug:

	% set | grep version
	version tcsh 6.21.00 (Astron) 2019-05-08 (x86_64-unknown-linux) \
	options wide,nls,dl,al,kan,sm,rh,color,filec

	% mkdir t

	% cd t

	% ls
	[no output]

	% touch 201{0,1,2,3,4,5,6,7,8,9}

	% ls
	2010  2011  2012  2013  2014  2015  2016  2017  2018  2019

	% echo 201[2-3]
	2010 2011 2012 2013

	% echo 201[23]
	2012 2013

Notice the erroneous output for the range pattern 201[2-3]; correct
output is obtained when the range is explicitly expanded, as in the
last example.

I have reproduced that example on GNU/Linux AMD64 (CentOS 7),
GNU/Linux armv7l (ArchLinux), Apple macOS 10.13.6, and Solaris 10
SPARC, which includes big- and little-endian addressing and common
O/Ses on 3 major CPU families.


-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: beebe at math.utah.edu  -
- 155 S 1400 E RM 233                       beebe at acm.org  beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------


More information about the Tcsh mailing list