【发布时间】:2014-03-04 03:27:49
【问题描述】:
正如document 所描述的,Bash 中的[set] 可以匹配set 中的任何字符,
在下面,我在当前目录中有 3 个名为 a,b,c 的目录:
$ ls
a b c
$ ls [abd] # just as expected,show dirs a and b
a:
b:
$ ls [bd] # expecting show dir b but noting matched
$ ls [ad] # expecting show dir a but noting matched
谁能给我解释一下?谢谢!
【问题讨论】: