You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Alan Gates (JIRA)" <ji...@apache.org> on 2013/05/30 00:56:20 UTC

[jira] [Created] (HIVE-4630) bin/hive fails if the user has CDPATH environment variable set

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