[Top][All Lists]

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

Re: removing old trap behavior causes serious issues on Solaris

From: Chet Ramey
Subject: Re: removing old trap behavior causes serious issues on Solaris
Date: Thu, 16 Sep 2004 17:40:54 -0400
User-agent: Mozilla Thunderbird 0.8 (Macintosh/20040913)

Vince Del Vecchio wrote:

That does indeed fix the specific problem.  Thank you.

POSIX specifies the original bash-3.0 behavior.  Solaris is not a
POSIX system.

I thought that was the purpose of POSIXLY_CORRECT, to allow backward
compatibility when it was more desirable than strict POSIX conformance.

It is.  But since the shell goes into posix mode when invoked as `sh',
I thought it worthwhile to introduce this level of compatibility.

And since you brought it up, doesn't patch 3 break POSIX conformance?

Yes, it does.  I decided to live with it.

It seems that under POSIX "trap 2 3" should invoke "2" on SIGQUIT.  But
the patch seems not to check for POSIXLY_CORRECT.

You are correct.  And, before the patch, that's what it did.  As I said,
I decided to live with it because there are systems out there -- Solaris
is not the only one -- that need it.

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Chet Ramey, ITS, CWRU address@hidden http://tiswww.tis.cwru.edu/~chet/

reply via email to

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