How to interpolate into the `julia -c` shell command

The standard solution is to quote variables (which you should always do anyway), not to hack IFS:

julia -e "${code}"
4 Likes