tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48840] New: fails to set CATALINA_HOME on newer bash versions
Date Tue, 02 Mar 2010 10:33:38 GMT

           Summary: fails to set CATALINA_HOME on newer bash
           Product: Tomcat 6
           Version: 6.0.18
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina

Created an attachment (id=25079)
 --> (
Suppresses the printing of a path cd'ed to when computing $CATALINA_HOME

On a newly installed Ubuntu system, this line in 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):


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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message