bug-autoconf
[Top][All Lists]
Advanced

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

Aw: Re: Portability problems in autoconf manual


From: jens . schmidt35
Subject: Aw: Re: Portability problems in autoconf manual
Date: Thu, 30 Apr 2009 11:46:12 +0200 (CEST)

> On Wednesday 29 April 2009 16:22:08 Andreas Schwab wrote:
> > Mike Frysinger <address@hidden> writes:
> > >
> http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#t
> > >rap If the first operand is an unsigned decimal integer, the shell shall
> > > treat all operands as conditions, and shall reset each condition to the
> > > default value. Otherwise, if there are operands, the first is treated
> as
> > > an action and the remaining as conditions.
> >
> > This paragraph is new in POSIX.1-2008.
> 
> still makes dash broken, but makes it much less useful in the portability 
> document since we're looking at supporting systems much older than 2008

But it seems that not only the newest POSIX standard mandates
such behaviour, but also that most existing shells behave like
that.

In any case, I would find it worth mentioning in the autoconf
documentation, where it says that there is no portable
work-around to "trap - 1 2 3 15", that there is a
"mostly portable" alternative. This wouldn't be the first
incident of such a statement in the document.


Arcor.de Gaming Area - kostenfrei daddeln bis der Arzt kommt!
Jetzt checken und aus über 80 Spielen wählen!
http://www.arcor.de/footer-gaming/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]