Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 31003

Summary: java-config is a Bash script, but calls /bin/sh
Product: Gentoo Linux Reporter: Jonathan Rogers <jonner>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: bkhl
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 31468    

Description Jonathan Rogers 2003-10-12 19:02:51 UTC
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]
Comment 1 SpanKY gentoo-dev 2003-10-14 08:00:36 UTC
*** Bug 31122 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2003-10-14 08:12:58 UTC
*** Bug 31123 has been marked as a duplicate of this bug. ***
Comment 3 Adrian Almenar 2003-10-18 21:04:55 UTC
Theres a new java-config version available on testing, it is python based
so im closing this bug.