bin/servicemix may fail to start when CDPATH is set (on POSIX shells)
---------------------------------------------------------------------

                 Key: SM-1879
                 URL: https://issues.apache.org/activemq/browse/SM-1879
             Project: ServiceMix
          Issue Type: Bug
         Environment: POSIX shell - found with bash on Ubuntu
            Reporter: Greg Lucas
            Priority: Trivial


On POSIX compliant shells, 'cd' may print to stdout when a nonempty directory 
name from the CDPATH environment variable is used successfully. The servicemix 
startup script uses 'cd' output to set SERVICEMIX_HOME and the extra output 
causes an error. This can happen when the CDPATH contains '.' and a relative 
path is used, for example:

bash$ cd /opt/apache-servicemix-4.1.0-SNAPSHOT
bash$ echo $CDPATH
.:..:/foo/bar
bash$ bin/servicemix 
servicemix: SERVICEMIX_HOME is not valid: /opt/apache-servicemix-4.1.0-SNAPSHOT
/opt/apache-servicemix-4.1.0-SNAPSHOT


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to