python:3.10-slimderives from Debian bookworm and the C image derives from Alpine. Debian will use bash as its shell, alpine will use POSIX Dash. However I'm surprised this would make a difference on something like quoting where the two shells should be interchangeable.
I think it would be a good idea to have the Python docker images use the same parent image as our C image, so that they have the same shell and package manager. python:3.10-alpine is an official image for Python 3.10 that is based on Alpine, so this would accomplish this.
Originally posted by @elgeeko1 in https://github.com/lf-lang/lingua-franca/issues/2377#issuecomment-2244017949