[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bashisems in maintainer scripts.

On Tue, Mar 02, 2004 at 10:45:28AM -0800, Oliver Kurth wrote:
> On Tue, 2004-03-02 at 10:32, Jeroen van Wolffelaar wrote:
> > Why not simply use #!/bin/bash (it's essential), nobody is forced to use
> > /bin/sh...
> > 
> > Baf, all problems gone, bashisms are allowed, if it works with bash, it
> > works, bash is portable within Debian so problem solved.
> > 
> > Or did I miss something?
> You did - there may be users who do want to install bash, but dash or
> sth else instead, for example if they have tight diskspace.

It's not possible for them to remove bash, so it won't help them

  Package: bash
  Essential: yes

However, they might want to install another shell as /bin/sh for speed
reasons. bash is quite slow compared to some other /bin/sh
implementations. For that reason (plus more nebulous and debatable style
reasons) it's worthwhile to stick to POSIX shell where possible.

Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: