GNOME Bugzilla – Bug 610407
drag and drop files into terminal creates single quotes automatically
Last modified: 2010-02-18 23:11:31 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
This is a feature, not a bug. You'll just have to adapt your script to unquote.