hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elek, Marton (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDDS-1642) Avoid shell references relative to the current script path
Date Tue, 04 Jun 2019 13:32:00 GMT
Elek, Marton created HDDS-1642:

             Summary: Avoid shell references relative to the current script path
                 Key: HDDS-1642
                 URL: https://issues.apache.org/jira/browse/HDDS-1642
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Eric Yang

This is based on the review comment from [~eyang]:

bq. You might need pwd -P to resolve symlinks. I don't recommend to use script location to
make decision of where binaries are supposed to be because someone else can make newbie mistake
and refactor your script to invalid the original coding intend. See this blog to explain the
right way to get the directory of a bash script. This is the reason that I used OZONE_HOME
as base reference frequently.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org

View raw message