[ 
https://issues.apache.org/jira/browse/KAFKA-4566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886922#comment-17886922
 ] 

David Arthur commented on KAFKA-4566:
-------------------------------------

As [~cmccabe] mentioned here 
[https://github.com/apache/kafka/pull/17326#issuecomment-2392107930,] MacOS 
didn't support readlink until 12.3. Since MacOS 12 is still technically 
supported, we should wait a bit for committing that change.

I've updated this ticket for a 4.1 release since MacOS 12 will be EoL by then.

> 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: 0.10.1.1
>            Reporter: Stephane Maarek
>            Assignee: Akhilesh Naidu
>            Priority: Major
>              Labels: newbie
>             Fix For: 4.1.0
>
>
> in the kafka consumer for example, the last line is :
> https://github.com/apache/kafka/blob/trunk/bin/kafka-console-consumer.sh#L21
> {code}
> exec $(dirname $0)/kafka-run-class.sh kafka.tools.ConsoleConsumer "$@"
> {code}
> if I create a symlink using 
> {code}
> ln -s
> {code}
> it doesn't resolve the right directory name because of $(dirname $0) 
> I believe the right way is to do:
> {code}
> "$(dirname "$(readlink -e "$0")")"
> {code}
>  
> Any thoughts on that before I do a PR?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to