incubator-chukwa-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillermo Pérez <>
Subject Some scripts in bin/ folder require bash, call sh
Date Mon, 15 Feb 2010 16:07:32 GMT
Hi, I have noticed that some scripts in bin/ folder of the
distribution say to require /bin/sh to run, but in fact they require
bash because they use function for declaring functions:

$ grep -r function bin/
bin/ stop {
bin/ remove_cron {
bin/ add_cron {
bin/ clean_up {
bin/ stop {
bin/ stop {
bin/ status {
bin/ shutdown {

If you really use sh (or compatible dash) to execute them you get an
error. They require bash to work:
sh bin/
bin/ 24: function: not found

We should use #!/bin/bash as header on those scripts.


Guille -ℬḭṩḩø- <>

View raw message