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.
我想运行以下命令:
for i in git python gcc java pip $i --version end
但是鱼告诉我使用一个函数。我不确定最好的方法是什么。
该eval命令适用于此,但是鱼建议的功能是否更合适?
eval
for i in git python gcc java pip eval $i --version end