hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-4630) bin/hive fails if the user has CDPATH environment variable set
Date Wed, 29 May 2013 22:56:20 GMT
Alan Gates created HIVE-4630:
--------------------------------

             Summary: bin/hive fails if the user has CDPATH environment variable set
                 Key: HIVE-4630
                 URL: https://issues.apache.org/jira/browse/HIVE-4630
             Project: Hive
          Issue Type: Bug
          Components: CLI
    Affects Versions: 0.11.0
            Reporter: Alan Gates
            Priority: Minor


If a user invokes bin/hive and he has CDPATH set in his environment the bin/hive script will
fail.  The reason for this is the following line:

{code}
bin=`cd "$bin"; pwd`
{code}

If CDPATH is set then "cd $bin" will echo the path just cd'd to.  This causes the variable
bin to have two lines, one from cd and one from pwd.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message