On 09/12/11 11:17, Stefano Lattarini wrote:
this is due to the fact
that the Debian korn shell is apparently killing itself (yikes!) with the
same signal that killed the child process:
That's actually a fairly standard trick, one that I've seen in
other programs. The idea is that the invoking
On Monday 12 September 2011, Paul Eggert wrote:
On 09/12/11 09:19, Stefano Lattarini wrote:
This example might show the problem more clearly:
Yes, thanks, that does clarify matters, and my guesses seem
incorrect. It does seem that ksh's behavior (in your last
example, anyway) violates
On Monday 12 September 2011, Stefano Lattarini wrote:
Now some updates: the default Korn Shell on Debian GNU/Linux (package
`ksh', version `93u-1') seems to exhibit the same issue:
$ ksh -c perl -e 'kill 2, \$\$'; :; echo $?
130
And if I'm not reading the strace output wrong, this is
On Monday 12 September 2011, Paul Eggert wrote:
On 09/12/11 11:17, Stefano Lattarini wrote:
this is due to the fact
that the Debian korn shell is apparently killing itself (yikes!) with the
same signal that killed the child process:
That's actually a fairly standard trick, one that I've
On 09/12/11 13:03, Stefano Lattarini wrote:
It's just that this trick doesn't work for the shell itself,
at least, it doesn't always work in the presence of traps.
So you basically agree with my opinion?
I agree that it's a problem with ksh's behavior.
I'm not sure that it violates POSIX;