#1125214 procyon-decompiler: launcher script missing quotes around variables

#1125214#5
Date:
2026-01-10 23:01:20 UTC
From:
To:
Dear Maintainer,

The `/usr/bin/procyon` launcher script installed by the the
`procyon-decompiler` package invokes the tool as:

    java -cp $CLASSPATH com.strobel.decompiler.DecompilerDriver $@

The lack of quotes around "$@" causes the shell to perform word
splitting on any arguments passed to the script.  For example, the invocation

    procyon "This Is An Example.jar"

results in the following error:

    !!! ERROR: Failed to load class This.
    !!! ERROR: Failed to load class Is.
    !!! ERROR: Failed to load class An.
    java.io.FileNotFoundException: File not found: Example.jar
      at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:224)
      at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:145)

It's possible to work around this issue by renaming the target file.

The script should also quote "$CLASSPATH" on that line for the same reason.