Re: Eliminating bash scripts?

2011-09-30 Thread David Weinehall
On Wed, Sep 28, 2011 at 03:59:40PM +0100, Simon McVittie wrote: [snip] > If you can use ${x%%y}, ${x#y} etc. to achieve the same effect (you > often can), you get the best of both worlds. I believe they're > specified by POSIX; certainly, current dash supports them, and they're > in the SUS. SuSv

Re: Eliminating bash scripts?

2011-09-28 Thread Simon McVittie
On Wed, 28 Sep 2011 at 13:01:45 +0200, Thomas Hood wrote: > * The package then has fewer dependencies > * ... and can then be installed on a system without bash. This doesn't help Debian directly, but it may help upstreams to be portable to operating systems with a reason to use a non-bash shell -

Re: Eliminating bash scripts?

2011-09-28 Thread Ian Jackson
Thomas Hood writes ("Eliminating bash scripts?"): > Recently I noticed some bug reports asking that scripts be > rewritten to run on (POSIX) sh. These weren't the familiar > (and completely justified) complaints about bashisms in scripts > shebanged #!/bin/sh. The

Re: Eliminating bash scripts?

2011-09-28 Thread Neil Williams
On Wed, 28 Sep 2011 13:01:45 +0200 Thomas Hood wrote: > * The package then has fewer dependencies > * ... and can then be installed on a system without bash. Unless the package is doing a lot of clever stuff in shell (at which point it is possibly worth asking if the package should use a faster

Eliminating bash scripts?

2011-09-28 Thread Thomas Hood
Recently I noticed some bug reports asking that scripts be rewritten to run on (POSIX) sh. These weren't the familiar (and completely justified) complaints about bashisms in scripts shebanged #!/bin/sh. These were requests to rewrite #!/bin/bash scripts as #!/bin/sh scripts. Why do this? The fol