Bug#405974: openoffice.org-dev: wrapper scripts in openoffice sdk do not accept spaces in arguments
Package: openoffice.org-dev
Version: 2.0.4.dfsg.2-2
Severity: normal
The wrapper scripts for the various tools of the SDK are currently
implemented as follows:
====
#!/bin/sh
# wrapper script for OOos SDK programs
LD_LIBRARY_PATH=/usr/lib/openoffice/program /usr/lib/openoffice/sdk/linux/bin/`basename $0`.bin $@
====
The last line passes arguments to the final binary program with $@.
However, it is sometimes necessary to pass arguments that contain
spaces. The $@ expansion splits arguments containing spaces in two or
more arguments and thus does not preserve what has been initially
passed to the script.
Proposed fix: replace $@ with "$@". Putting $@ in quotes preserves
the arguments as they were passed to the script without splitting
them.
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US.UTF8, LC_CTYPE=en_US.UTF8 (charmap=UTF-8)
Versions of packages openoffice.org-dev depends on:
ii libc6 2.3.6.ds1-9 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-21 GCC support library
ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3
ii libstlport4.6-dev 4.6.2-3 STLport C++ class library
ii libstlport4.6c2 4.6.2-3 STLport C++ class library
ii libx11-6 2:1.0.3-4 X11 client-side library
ii openoffice.org-core 2.0.4.dfsg.2-2 OpenOffice.org office suite archit
Versions of packages openoffice.org-dev recommends:
pn dmake <none> (no description available)
ii g++ 4:4.1.1-15 The GNU C++ compiler
pn java-gcj-compat-dev <none> (no description available)
ii openoffice.org-java-commo 2.0.4.dfsg.2-2 OpenOffice.org office suite Java s
-- no debconf information
Reply to: