I have a rather odd situation where [0-9]
matching is not working under tcsh
(but working under csh
and bash
). here is an example:
muon:~/tmp.52 ls
a0 a1 a2 a3 a4 a5 a6 apollo_help.docx*
muon:~/tmp.53 ls a[4-9]
a0 a1 a2 a3 a4 a5 a6
muon:~/tmp.54 csh
%m:%B%~%b.%h ls a[4-9]
a4 a5 a6
%m:%B%~%b.%h exit
%m:%B%~%b.%h exit
muon:~/tmp.55 bash
muon:~/tmp$ ls a[4-9]
a4 a5 a6
muon:~/tmp$ exit
exit
muon:~/tmp.56 ls a[4-9]
a0 a1 a2 a3 a4 a5 a6
I have played with locale settings but it did not fix the problem. the OS is ubuntu. Interestingly, on another ubuntu system, [0-9]
matching worked as expected under all 3 shells (tcsh
included). It seemed like some funny things are hiding at the system (not user) level. what could that be? thanks very much.
echo $version
from the tcsh please? Was it installed from the Ubuntu repository or by some other means? – steeldriver Jun 04 '21 at 15:31tcsh 6.21.00 (Astron) 2019-05-08 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,nd,color,filec
), whilea[456789]
works as expected. – A.B Jun 04 '21 at 22:56