You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Bo Wang (JIRA)" <ji...@apache.org> on 2015/06/09 03:19:00 UTC

[jira] [Commented] (KAFKA-2254) The shell script should be optimized , even kafka-run-class.sh has a syntax error.

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

Bo Wang commented on KAFKA-2254:
--------------------------------

The trunk have fixed kafka-run-class.sh  syntax error.

> The shell script should be optimized , even kafka-run-class.sh has a syntax error.
> ----------------------------------------------------------------------------------
>
>                 Key: KAFKA-2254
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2254
>             Project: Kafka
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.8.2.1
>         Environment: linux
>            Reporter: Bo Wang
>              Labels: client-script, kafka-run-class.sh, shell-script
>             Fix For: 0.8.2.1
>
>         Attachments: kafka-shell-script.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
>  kafka-run-class.sh 128 line has a syntax error(missing a space):
> 127    -loggc)
> 128     if [ -z "$KAFKA_GC_LOG_OPTS"] ; then
> 129        GC_LOG_ENABLED="true"
> 130     fi
> And use the ShellCheck to check the shell scripts, the results shows some errors 、 warnings and notes:
> https://github.com/koalaman/shellcheck/wiki/SC2068
> https://github.com/koalaman/shellcheck/wiki/Sc2046
> https://github.com/koalaman/shellcheck/wiki/Sc2086



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)