[25971] in Athena Bugs
Re: linux 9.3.8: gnumeric
daemon@ATHENA.MIT.EDU (Jacob Morzinski)
Fri Aug 20 20:22:42 2004
To: Kevin W Chen <kchen@mit.edu>
From: Jacob Morzinski <jmorzins@mit.edu>
Date: 20 Aug 2004 20:21:47 -0400
In-Reply-To: <bugs:25970@unknown-discuss-server>
Message-ID: <w6mwtztjq78.fsf@opus.mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
cc: bugs@mit.edu
Errors-To: bugs-bounces@mit.edu
<daemon@ATHENA.MIT.EDU> (Kevin W Chen) writes:
> Open a file whose name has a space in it from the command line with:
[...]
> gnumeric attempts to open "Assignments.xls" and fails to open the
> correct file.
I think that the bug that causes this is the final lines of
gnumeric_v1.0.6/arch/i386_linux24/bin/gnumeric
gnumeric_v1.0.13/arch/i386_linux24/bin/gnumeric
They execute
exec ${GNOMEDIR}/bin/gnumeric $*
when the better variable choice would have been
exec ${GNOMEDIR}/bin/gnumeric "$@"
(The unquoted $* destroys the user's careful quoting of the file
name; using "$@" preserves the user's whitespace.)
--
Jacob Morzinski jmorzins@mit.edu