bug-bash
[Top][All Lists]
Advanced

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

Re: removing old trap behavior causes serious issues on Solaris


From: Vince Del Vecchio
Subject: Re: removing old trap behavior causes serious issues on Solaris
Date: Thu, 16 Sep 2004 15:22:54 -0400

>>>>> On Thu, 16 Sep 2004 14:48:52 -0400,
   Chet Ramey <address@hidden> said:

>> The NEWS file says:
>> 
>>> oo. The historical behavior of `trap' that allows a missing `action' 
>>> argument
>>> to cause each specified signal's handling to be reset to its default is
>>> now only supported when `trap' is given a single non-option argument.

> A measure of backwards compatibility was introduced by patch 3 to
> bash-3.0.

> ftp://ftp.cwru.edu/pub/bash/bash-3.0-patches/

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.

And since you brought it up, doesn't patch 3 break POSIX conformance?
It seems that under POSIX "trap 2 3" should invoke "2" on SIGQUIT.  But
the patch seems not to check for POSIXLY_CORRECT.

-Vince




reply via email to

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