~exec64/imv#2: 
open command cannot handle spaces

Both in imv's own command line and through the IPC, spaces are treated as path separators no matter how they are quoted.

I believe the problem is that command_open() calls wordexp() on each argument, when the list was produced by simply splitting on spaces, instead of concatenating them and expanding it once.

Example:

open a b.png     # Tries to open 'a' and 'b.png' (OK)
open 'a b.png'  # Does nothing (???)
open "a b.png"  # Also does nothing (???)
open a\ b.png   # Tries to open 'b.png' (???)
open a\\ b.png  # Tries to open 'a\' and 'b.png' (OK...)
Status
REPORTED
Submitter
~brkdak
Assigned to
No-one
Submitted
2 years ago
Updated
6 months ago
Labels
No labels applied.

~exec64 2 years ago

Thanks for the report, I hadn't noticed this. That's definitely broken.

~angry 6 months ago

The complaint has been around for two years now. Is there any hope of fixing the bug? This is a very important feature.

Register here or Log in to comment, or comment via email.