Subject: strange sh bug uncovered by spice
To: None <current-users@NetBSD.ORG>
From: John F. Woods <>
List: current-users
Date: 06/04/1995 22:41:09
The SPICE 3F4 build script assumes that it can trap signal 9, or at least that
it can safely ask that signal 9 be trapped.  With a /bin/sh that was compiled
April 16, it prints "Sigaction system call failed", a not too unreasonable
thing to do, since you *can't* trap signal 9.  However, all further commands
(external commands, not builtins) *also* print "Sigaction system call failed"
instead of doing anything useful.  It would probably make more sense for sh
to special-case signal 9 and either print a sensible error message, or
perhaps to just ignore the attempt.  The public domain Korn shell simply
ignores the return value from sigaction, avoiding the problem.