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

Re: ash vs. bash

On Sat, Jul 24, 1999 at 10:42:07AM -0400, Michael Stone wrote:
 >under bash, _even though they are syntactically valid in ash_. There's
 >too much uncertainty at this point to change the default. (Although I
 >agree that if _I_ change /bin/sh, bash ought to keep its hands off it.)

Just to confirm that everything should remain ok linking /bin/sh -> /bin/ash,
I have tried this :

    for i in $(ls /var/lib/dpkg/info/*.{preinst,postinst,prerm,postrm})
      if file $i |grep -q -i bourne
        ash -n $i

The only error I got was :

  /var/lib/dpkg/info/witalian.postinst: 50: Syntax error: Bad substitution

but that is fine, as that script correctly starts with #!/bin/bash, without
assuming that /bin/sh be bash.

I have done the same against /etc/init.d/* and again no problems.

Carlo Strozzi       PGP Public Key fingerprint :
ED 4A 7A 6C 88 66 1B 34  06 14 FC 2E C7 EA F2 EE

Against software patents:
http://www.freepatents.org , http://no-patents.prosa.it

Reply to: