tcsh 和匹配

tcsh 和匹配

我有一個相當奇怪的情況,匹配在(但在and下工作)[0-9]不起作用。這是一個例子:tcshcshbash

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

我已經嘗試過區域設置,但它沒有解決問題。作業系統是ubuntu。有趣的是,在另一個 ubuntu 系統上,配對在所有 3 個 shell(包括在內)[0-9]下都按預期工作。tcsh似乎一些有趣的事情隱藏在系統(而不是用戶)層級。那會是什麼?非常感謝。

相關內容