Return-Path: Delivered-To: apmail-hadoop-chukwa-dev-archive@minotaur.apache.org Received: (qmail 84459 invoked from network); 12 Feb 2010 12:26:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2010 12:26:49 -0000 Received: (qmail 55307 invoked by uid 500); 12 Feb 2010 12:26:49 -0000 Delivered-To: apmail-hadoop-chukwa-dev-archive@hadoop.apache.org Received: (qmail 55253 invoked by uid 500); 12 Feb 2010 12:26:49 -0000 Mailing-List: contact chukwa-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-dev@hadoop.apache.org Delivered-To: mailing list chukwa-dev@hadoop.apache.org Received: (qmail 54942 invoked by uid 99); 12 Feb 2010 12:26:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 12:26:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 12:26:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E7666234C1EF for ; Fri, 12 Feb 2010 04:26:27 -0800 (PST) Message-ID: <822089712.231841265977587946.JavaMail.jira@brutus.apache.org> Date: Fri, 12 Feb 2010 12:26:27 +0000 (UTC) From: "Gerrit Jansen van Vuuren (JIRA)" To: chukwa-dev@hadoop.apache.org Subject: [jira] Updated: (CHUKWA-453) Shell scripts should use !/bin/bash not !/bin/sh In-Reply-To: <1985573155.231461265976627936.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CHUKWA-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerrit Jansen van Vuuren updated CHUKWA-453: -------------------------------------------- Attachment: CHUKWA-453.patch The patch only modifies the sh files that have !/bin/sh and makes it !/bin/bash I've noticed that some of the .sh files already had !/bin/bash and some of the helper scripts like start-all.sh have !/usr/bin/env bash. > 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.