To start with, if you ever feel the need to write a O(n) for loop for finding which commit broke your build, you DID need git-bisect.
Definitely DONT'T wait for PIDs like that and if you do want to write code like that, maybe actually use the arrays bash provides?
If your complaint is that for a in b c d; do ...; done is unclear, then maybe also use lists there, because what's definitely LESS clear is putting things in a variable and relying on splitting.
And most importantly, DO quote things (except when it's unnecessary).