kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephane Maarek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-4566) Can't Symlink to Kafka bins
Date Thu, 22 Dec 2016 05:53:58 GMT
Stephane Maarek created KAFKA-4566:

             Summary: Can't Symlink to Kafka bins
                 Key: KAFKA-4566
                 URL: https://issues.apache.org/jira/browse/KAFKA-4566
             Project: Kafka
          Issue Type: Bug
          Components: tools
    Affects Versions:
            Reporter: Stephane Maarek

in the kafka consumer for example, the last line is :

exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsoleConsumer "$@"

if I create a symlink using 
ln -s

it doesn't resolve the right directory name because of $(dirname $0) 

I believe the right way is to do:
"$(dirname "$(readlink -e "$0")")"

Any thoughts on that before I do a PR?

This message was sent by Atlassian JIRA

View raw message