Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您将如何在fish中编写等效脚本
#!/bin/bash for i in `ls` do echo $i done
谢谢
fish 使用(括号)而不是反引号来捕获 shell 输出:
(
)
for i in (ls) echo $i end