本文翻译自 https://mywiki.wooledge.org/BashPitfalls 1. for f in $(ls *.mp3) 一个最常见的bash程序员会犯的错误就是使用如下的循环: for f in $(ls *.mp3); do # Wrong! some command $f # Wrong! done for f in $(ls) # Wrong! for f in `ls` # Wrong! for f in $(find . -type f) # Wrong! for f i...