bug-autoconf
[Top][All Lists]
Advanced

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

Re: Bug in latest install-sh


From: Stepan Kasal
Subject: Re: Bug in latest install-sh
Date: Tue, 1 Nov 2005 09:52:17 +0100
User-agent: Mutt/1.4.1i

Hello,

On Mon, Oct 31, 2005 at 11:53:23PM -0800, Kean Johnston wrote:
> >I looked at POSIX, and 'trap - 0' is standardized, while 'trap 0' is not.

> Ok thats a fair comment. But then if you want to use POSIX
> shell scripts shouldn't you ensure you are running in a
> POSIX shell?

I agree that the priority is to use a portable solution.
But among them, the standards conforming should be preferred--it's kind of
"future portability".  Moreover, people will read the scripts: we shouldn't
teach them portable non-conforming hacks, if there are portable conforming
ones available.  ;-)

> > [...] would "trap '' 0" work?  Or perhaps "trap : 0"?

> Both do, but trap '' 0 seems to be the most portable.

And it is also the clener one.
Proposed patch attached.

I'm also attaching a proposed patch for the Autoconf manual.
Could someone please verify whether "trap - SIG" is supported on recent
versions of Solaris and HPUX?

Have a nice day,
        Stepan Kasal

Attachment: automake-20051101-trap.patch
Description: Text document

Attachment: autoconf-20051101-trap.patch
Description: Text document


reply via email to

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