in reply to Re^2: Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail
in thread Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail

I know that Windows requires quotes if a file or directory name contains spaces

This is incorrect. Windows system calls include CreateFile, the call used to create file handles and possibly files, takes a path, not a quoted path.

You may need to use quote paths in shell commands to ensure the path is correctly passed to the program. But just like Windows, open expects a path, not a fragment of a shell command.

Replies are listed 'Best First'.
Re^4: Filename Surrounded by Quotes in a Scalar Variable Causes Open to Fail
by roho (Bishop) on Sep 05, 2020 at 05:01 UTC
    Thanks ikegami. You're right. Windows requires quotes around filenames that contain a space in cmd commands (and interestingly, Windows automatically puts quotes around paths in shortcuts when the path name contains a space).

    "It's not how hard you work, it's how much you get done."