You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chukwa.apache.org by "Eric Yang (JIRA)" <ji...@apache.org> on 2010/02/12 17:25:28 UTC

[jira] Commented: (CHUKWA-453) Shell scripts should use !/bin/bash not !/bin/sh

    [ https://issues.apache.org/jira/browse/CHUKWA-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833053#action_12833053 ] 

Eric Yang commented on CHUKWA-453:
----------------------------------

I think it should be:

#!/usr/bin/env bash

Just in case.

> Shell scripts should use !/bin/bash not !/bin/sh
> ------------------------------------------------
>
>                 Key: CHUKWA-453
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-453
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Gerrit Jansen van Vuuren
>             Fix For: 0.4.0
>
>         Attachments: CHUKWA-453.patch
>
>
> Some of the scripts uses the function key word which is a feature in bash and not supported in shell. 
> Running the agent.sh for example gives bin/agent.sh: 24: function: not found
> The script headers should be changes to !/bin/bash and then it works.
> I propose this be done for all of the sh scripts for consistency.
> I'll attach a patch today.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.