Simon Rosenthal created SOLR-7088:
-------------------------------------
Summary: bin/solr script will not start Solr if CDPATH environment
variable is set
Key: SOLR-7088
URL: https://issues.apache.org/jira/browse/SOLR-7088
Project: Solr
Issue Type: Bug
Components: scripts and tools
Affects Versions: 5.0
Environment: Ubuntu 14.4, BASH 4.3
Reporter: Simon Rosenthal
if the BASH environment variable 'CDPATH' is set it causes a change in
behavior to the 'cd' command such that it will print out the directory which is
the target of the 'cd' command. This breaks the bin/solr script at
SOLR_TIP=`cd "$SOLR_TIP"; pwd`
DEFAULT_SERVER_DIR=$SOLR_TIP/server
As a result, SOLR_TIP will then contain the directory name twice with
disastrous results subsequently.
Fix is to add
UNSET CDPATH
early in the script
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]