@Sdowney Yeah. It's 100% possible to write shell scripts that behave correctly for all file names, but it's a pain in the neck to get it right in every single place when it's just a one-off.
Also, some tools like ssh have backwards compatibility concerns that force them to behave incorrectly, leading to ridiculous workarounds to make it work.