>>513
$ sh -c 'for z in a b c ; do echo $z ;done'

shの引数に渡されるときには外側のシェルで$zが既に展開されてる
$ echo sh -c "for z in a b c ; do echo $z ;done"