[sr-dev] Shell Problems in Debian Squeeze

Henning Westerholt henning.westerholt at 1und1.de
Tue Feb 2 09:56:05 CET 2010


On Tuesday 02 February 2010, Jan Janak wrote:
> It appears that Debian Squeeze does not use Bash as interpreter for system
> scripts and for scripts executed via /bash/sh anymore. It uses dash by
>  default which claims to be POSIX compliant, but does not support
>  "bashisms" typically found in more complex scripts.
> 
> As result it can happen that some of our shell scripts won't work on recent
> installations of Debian and Ubunty. There are two easy remedies:
> 
>   * Switch back to bash with sudo dpkg-reconfigure dash for the entire
>  system. * Replace /bin/sh with /bin/bash if you find a broken script
> 
> See also: https://wiki.ubuntu.com/DashAsBinSh

Hi Jan,

we've run into the same issue in [k]ubuntu about one year ago. For 
openser/kamailio we changed most of the scripts to just use bash as well.

Cheers,

Henning



More information about the sr-dev mailing list