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 610407 - drag and drop files into terminal creates single quotes automatically
drag and drop files into terminal creates single quotes automatically
Status: RESOLVED NOTABUG
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-02-18 22:46 UTC by David Walker
Modified: 2010-02-18 23:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Walker 2010-02-18 22:46:34 UTC
https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/523537


Binary package hint: gnome-terminal

I am unable to drag a file into a running script because the terminal creates single quotes around the filename automatically, which causes an error in the script. The test script is

#!/bin/bash -x
echo 'paste the md5sum from the source website here:'
read SHOULD
echo 'type path to file here:'
read NAME
if [ "$SHOULD" = `openssl dgst -md5 < "$NAME"` ]; then
echo 'verified'
else
echo 'verify failed!'
fi

which works when I type the full path (without ~) but fails when I drag the file to the terminal because of the automatically created quotes. I posted this in Launchpad, but nobody has answered so far. I may eventually figure out a solution, but it is a totally unnecessary complication (I could not find anything in gconf-editor or anywhere else to change the behaviour of the terminal).

ProblemType: Bug
Architecture: i386
Date: Thu Feb 18 00:38:54 2010
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gnome-terminal
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: fglrx
Package: gnome-terminal 2.28.1-0ubuntu1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-20.57-generic
SourcePackage: gnome-terminal
Uname: Linux 2.6.31-20-generic i686
Comment 1 Christian Persch 2010-02-18 23:11:31 UTC
This is a feature, not a bug. You'll just have to adapt your script to unquote.