Marcin Owsiany <[EMAIL PROTECTED]> wrote:
>
> I thought that this inconsistency was a bug in bash, but as you can find
> out in the thread, it is the first type of statements that behaves
> incorrectly, according to SUS.

I disagree with Chet on that.  My assessment is that POSIX/SUS
is ambiguous on this.  It is true that only simple commands can
lead to the shell exiting.  However, it also explicitly excludes
pipelines starting with !.  This can be construed as indicating
that simple commands that are a part of a pipeline not preceded
with ! can cause an exit.

Of course dash's current interpretation only includes the last
component of the pipeline, when not preceded by !.

> Since I like dash behavior more (makes it easier to write reliable
> scripts), I'm considering switching my program (cruft) to dash. But
> before I do it, can someone please confirm that what is written in the
> manpage and how dash behaves right now is indeed the intended behaviour,
> and will not in forseeable future be changed to match bash's behaviour?

I make no guarantees on this as SUS is subject to revision.
However, I also have no plans to change this until such SUS
clarifies this which probably won't occur for eons.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to