The java-config tool starts with "#! /bin/sh", but it contains Bash-specific syntax. In particular, it uses the optional keyword "function" in function definitions and some funky expansions. This issue is trivial to fix by replacing "/bin/sh" with "/bin/bash". Reproducible: Always Steps to Reproduce: 1.emerge app-shells/ash 2.replace /bin/sh with a symlink to /bin/ash 3.run java-config Actual Results: [: 36: 0: unexpected operator /usr/bin/java-config: 38: Syntax error: "(" unexpected Expected Results: Usage: java-config [OPTIONS] [LIBRARIES]
*** Bug 31122 has been marked as a duplicate of this bug. ***
*** Bug 31123 has been marked as a duplicate of this bug. ***
Theres a new java-config version available on testing, it is python based so im closing this bug.