Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316555

Summary: jetty.sh throws errors/warnings in older bash versions
Product: [RT] Jetty Reporter: Joakim Erdfelt <joakim.erdfelt>
Component: serverAssignee: Joakim Erdfelt <joakim.erdfelt>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox
Version: 7.1.3   
Target Milestone: 7.0.2.RC0   
Hardware: PC   
OS: Linux   
Whiteboard:

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