After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 134272 - quote (or escape) dragged files with spaces, etc
quote (or escape) dragged files with spaces, etc
Status: RESOLVED NOTABUG
Product: gnome-terminal
Classification: Core
Component: general
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 141965 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-02-12 23:41 UTC by Michael Gratton
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Michael Gratton 2004-02-12 23:41:19 UTC
Currently, if I DnD a file from Nautilus and the filename/path has spaces
or other shell-unsafe characters, the unsafe characters are left intact.
Instead, either the entire string should be enclosed with single quotes, or
the unsafe characters should be escaped.

I think using single quotes would be better because that would be slightly
more useful when you are running a program in the terminal (eg: an editor)
rather than just a shell, but I don't know if non-bash shells handle single
quotes in the same was as bash.

FWIW, Windows surrounds the string with double quotes and MacOS X escapes
unsafe characters with a backslash.

Haven't tested with 2.5, so I don't know if it is still an issue.
Comment 1 Mariano Suárez-Alvarez 2004-05-02 20:38:01 UTC
There is no way to know what escaping/quoting method the app the user is running
in a terminal is going to need. I think the best here is to let the user handle
the issue.
Comment 2 Michael Gratton 2004-05-03 15:30:38 UTC
After doing a little research, I think surrounding the string in single-quotes would work for both 
bourne- and csh-like shells.

Would that be a reasonable way to implement it? Better than nothing perhaps...
Comment 3 Mariano Suárez-Alvarez 2004-05-06 04:32:10 UTC
*** Bug 141965 has been marked as a duplicate of this bug. ***
Comment 4 Mariano Suárez-Alvarez 2004-05-06 04:35:21 UTC
It becomes annoying, though, if what you are doing is pasting a filename into an
html file you are editing in vi, for example...