fish shell 是否支持字母范围扩展?

Does fish shell support alphabetic range expansion?

在 bash 你可以这样做

echo {a..d}

它会打印

a b c d

如何在鱼中做到这一点 shell?


我尝试了什么:

echo {a..d}
a..d

echo {a-d}
a-d

echo [a-d]
[a-d]

echo (seq 5)[a-d]
fish: Invalid index value
echo (seq 5)[a-d]
         ^

echo (seq 5)[a..d]
fish: Invalid index value
echo (seq 5)[a..d]
             ^

fish 完全支持字母扩展吗?

Does fish support alphabetic expansion at all?

没有

使用正常的大括号扩展 - {a,b,c,d}.