标签: fish
您如何在 fish
#!/bin/bash for i in `ls` do echo $i done
谢谢
答案 0 :(得分:6)
fish使用( parens )而不是反引号来捕获shell输出:
(
)
for i in (ls) echo $i end