Description
in the kafka consumer for example, the last line is :
https://github.com/apache/kafka/blob/trunk/bin/kafka-console-consumer.sh#L21
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?