-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Dragging a file from Finder into the Terminal results in unescaped file path #4323
Description
fish, version 2.6.0
Using Apple Terminal 2.5 on 10.9.5
When you drag a file from the finder into the Terminal, on bash you get the file path escaped properly, especially in spaces: for instance /Users/blah/Downloads/folder\ with\ spaces. However, on fish you get the path literally without any spaces escaped.
This is probably related to the bracketed paste feature, since a similar issue afflicts zsh. Apparently zsh has a feature called bracketed-paste-magic that can solve this, but I haven't tried it.
I saw these other discussions about pasting #967 #2188 that might be related and discuss that bracketed paste magic (though I'm not sure if dragging files onto the terminal is implemented differently from pasting).
Also interestingly the answer from the stackexchange link about holding control while letting go of the mouse after dragging seems to force shell quoting