https://issues.apache.org/bugzilla/show_bug.cgi?id=48840
Summary: catalina.sh fails to set CATALINA_HOME on newer bash
versions
Product: Tomcat 6
Version: 6.0.18
Platform: All
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=25079)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25079)
Suppresses the printing of a path cd'ed to when computing $CATALINA_HOME
On a newly installed Ubuntu system, this line in catalina.sh fails:
[ -z "$CATALINA_HOME" ] && CATALINA_HOME=`cd "$PRGDIR/.." ; pwd`
After this line, $CATALINA_HOME has a value like this (using '\n' as newline
which actually appears in the variable's value):
/path/to/tomcat\n/path/to/tomcat
It seems like when cd'ing the path is printed to stdout, so that $CATALINA_HOME
ends up unusable.
This behaviour has been observed with this version of bash:
$ bash --version
GNU bash, Version 4.0.33(1)-release (i486-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
[...]
The problem can be fixed using the attached patch.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]