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

Re: [PATCH] latest ash has broken 'echo' command



Chris Lawrence <quango@watervalley.net> wrote:
>
>> You miss the point completely.  The issue here is whether our #!/bin/sh
>> scripts should be POSIX compliant or not.  If the answer is yes, the change
>> in ash will be OK once our scripts are fixed.  If the answer is no, nobody
>> should use ash as /bin/sh because it won't be possible.

> No, the issue is what behavior Debian systems (and other operating
> systems based on the Linux kernel) expect "echo" to have.  Judging
> from the comments from the LSB list (and I think it's safe to assume

They only care about the shell, not shell scripts.  I presume they are going
to stick with what POSIX.2 says, which is that no portable script should use
options.  If they are actually going to mandate -e/-n, i.e., break POSIX.2,
then it would be a completely different matter.

> Now, if ash is not going to be compliant with LSB, and behave
> differently from other Bourne-compatible shells, then we should not
> use ash as an alternative for the standard Bourne-compatible shell
> (/bin/sh).  OTOH, since it's pretty obviously trivial to make ash an
> acceptable alternative (by allowing and acting on the switches), there
> is no good reason not to do so.

Our policy currently requires #!/bin/sh scripts to be POSIX compliant.  If
you don't like it, then get it changed.  But when that is done, it will be no
longer possible use anything other than bash as /bin/sh.

> What I seem to be missing here is why we're going out of our way to
> make ash behave differently from other Bourne-compatible shells in
> Debian (since obviously it behaved consistently before).

We're doing this because ash can only serve as /bin/sh (which is one of the
main reasons why it exists at all) if we make sure that our #!/bin/sh scripts
stick to some set of standards.  That's currently POSIX.2.
-- 
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


Reply to: