How would a command line program under linux expect a filename with spaces in it to be passed.
Unsurprisingly, it should expect it surrounded by double quotes
But it depends on the program, of course. Most command line utilities understand this syntax, but it is possible that some old _or_ rare _or_ no longer maintained programs can have problems with file paths containing spaces
If you want to pass a file path to program, then just put double quotes around it. It is not necessary for filepaths without spaces, but it does not hurt either