[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#167014: gcj-3.2: Wrapper script cannot handle paths with spaces



Package: gcj-3.2
Version: 1:3.2.1-0pre4
Severity: normal

Hi.  The gcj-wrapper-3.2 script currently cannot handle paths containing
spaces.  As an example, create subdirectory "foo bar" containing Test.java.

bab@espresso:/tmp> gcj-wrapper-3.2 foo\ bar/Test.java
gcj-3.2: cannot specify -o with -c or -S and multiple compilations

Problems also occur when passing paths containing spaces using -classpath.

I realise these are not common occurrences but IMHO they're still worth
looking into.  For instance, your classpath might include a jar on a
windows partition beneath Program\ Files.

I'm not sure of the best way of dealing with these issues.  Perhaps even
killing all special character problems by using perl with an exec or
system call that takes an array argument and avoids the extra level of
shell interpretation all together?

Ben.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux espresso 2.4.19-686 #1 Thu Aug 8 21:30:09 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages gcj-3.2 depends on:
ii  gcc-3.2                    1:3.2.1-0pre4 The GNU C compiler.
ii  gcc-3.2-base               1:3.2.1-0pre4 The GNU Compiler Collection (base 
ii  java-common                0.16          Base of all Java packages
ii  libc6                      2.3.1-3       GNU C Library: Shared libraries an
ii  libgcc1                    1:3.2.1-0pre4 GCC support library.
ii  libgcj3                    1:3.2.1-0pre4 Java runtime library for use with 
ii  libgcj3-dev                1:3.2.1-0pre4 Java development headers and stati
ii  zlib1g                     1:1.1.4-6     compression library - runtime

-- no debconf information




Reply to: