Bug#779881: jardetector: chokes on space in filename

Samuel Bronson naesten at gmail.com
Thu Mar 5 22:01:52 UTC 2015


Package: jarwrapper
Version: 0.43
Severity: normal
Tags: patch
File: /usr/bin/jardetector

I just tried to run jardetector on a file with spaces in its name, and
it failed miserably, saying that it couldn't open
<name-of-file-up-until-first-space>.

It works much better if you put the $1 in double quotes, like so:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jardetector
Type: text/x-sh
Size: 87 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20150305/93db1cef/attachment.sh>
-------------- next part --------------
-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages jarwrapper depends on:
ii  binfmt-support  2.0.12
ii  fastjar         2:0.98-3

jarwrapper recommends no packages.

jarwrapper suggests no packages.

-- no debconf information


More information about the pkg-java-maintainers mailing list