[Tcsh] globbing problem in 6.21

Michal Szymanski msz at astrouw.edu.pl
Wed Apr 27 13:25:02 UTC 2022


Hello,

Sorry for a question regarding an older version (6.21) but as it is
the default 'tcsh' coming with Ubuntu 20.04 LTS (supported till 2025),
it may affect quite a lot of tcsh-ers. The $version variable contains
tcsh 6.21.00 (Astron) 2019-05-08 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,nd,color,filec

I've just got completely confused after copying a bunch of files using
a simple glob-pattern:

> cp c_[b-s]*.pdf /mnt/ram/C/

with files in the current directory:

c_01_intro.pdf
c_02_oper.pdf
c_03_instr.pdf
c_04_pointers.pdf
c_05_func.pdf
c_06_struct.pdf
c_07_library.pdf
c_bintree.pdf
c_circular_list.pdf
c_double_list.pdf
c_single_list.pdf
c_sortpointers.pdf

it ended up with ALL above files copied. Oooops!
Tried just 'echo':

> echo c_[b-s]*.pdf
c_01_intro.pdf c_02_oper.pdf c_03_instr.pdf c_04_pointers.pdf \
c_05_func.pdf c_06_struct.pdf c_07_library.pdf c_bintree.pdf \
c_circular_list.pdf c_double_list.pdf c_single_list.pdf \
c_sortpointers.pdf

Needless to say, when I run the same command(s) in bash, the filenames
starting with 'c_0' do not enter into globbing result.

Is that something known before? I've browsed my tcsh-list emails, to no
success. If known, has it been fixed? Other machines that I use (Rocky
Linux 8) have tcsh 6.20.00-13.el8 which works as expected.

regards, Michal

-- 
  Michal Szymanski (msz at astrouw dot edu dot pl)
  Warsaw University Observatory, Warszawa, POLAND


More information about the Tcsh mailing list