我想问:
为什么echo {1,2,3}扩展到 1 2 3 这是预期的行为,而echo [[:digit:]]返回[[:digit:]]而我希望它打印所有数字从0to 9?
echo {1,2,3}
echo [[:digit:]]
[[:digit:]]
0
9
shell wildcards
shell ×1
wildcards ×1