Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31003 - java-config is a Bash script, but calls /bin/sh
Summary: java-config is a Bash script, but calls /bin/sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 31122 31123 (view as bug list)
Depends on:
Blocks: 31468
  Show dependency tree
 
Reported: 2003-10-12 19:02 UTC by Jonathan Rogers
Modified: 2003-10-18 21:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.