Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316555 - jetty.sh throws errors/warnings in older bash versions
Summary: jetty.sh throws errors/warnings in older bash versions
Status: CLOSED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.1.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 7.0.2.RC0   Edit
Assignee: Joakim Erdfelt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 19:13 EDT by Joakim Erdfelt CLA
Modified: 2010-06-10 19:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Erdfelt CLA 2010-06-10 19:13:31 EDT
We see the following errors / warnings when using jetty.sh with an older version of bash.

expr: warning: unportable BRE: `^#': using `^' as the first character
of the basic regular expression is not portable; it is being ignored
expr: warning: unportable BRE: `^#': using `^' as the first character
of the basic regular expression is not portable; it is being ignored
expr: warning: unportable BRE: `^#': using `^' as the first character
of the basic regular expression is not portable; it is being ignored


Bash 3.1.17
Fedora Core 5 (x86 version)
Comment 1 Joakim Erdfelt CLA 2010-06-10 19:14:22 EDT
The root cause is a flaw in the expr syntax to skip comments in the etc/jetty.conf file, not in the bash script syntax.
Comment 2 Joakim Erdfelt CLA 2010-06-10 19:17:33 EDT
Fixed in trunk revision 1990