Received: (at submit) by bugs.debian.org; 21 Mar 2001 21:06:29 +0000 From herbert@gondor.apana.org.au Wed Mar 21 15:06:29 2001 Return-path: Received: from gondor.apana.org.au [203.14.152.114] (root) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14fpoK-0003M8-00; Wed, 21 Mar 2001 15:06:28 -0600 Received: (from herbert@localhost) by gondor.apana.org.au (8.11.1/8.11.1/Debian 8.11.0-6) id f2LL61o26631; Thu, 22 Mar 2001 08:06:01 +1100 Date: Thu, 22 Mar 2001 08:06:01 +1100 Message-Id: <200103212106.f2LL61o26631@gondor.apana.org.au> From: Subject: bash: builtin read doesn't treat signals properly To: submit@bugs.debian.org X-Mailer: bug 3.3.9 Delivered-To: submit@bugs.debian.org Package: bash Version: 2.04-9 Severity: normal The builtin read command erroneously inherits some trap settings. For instance, if we start bash -c 'trap "echo hi" USR1; read foo' and then send it a USR1, it'll echo hi (first breakage, you must not execute traps until the foreground command has completed) but keep read running. Now this particular trap is not one which is normally inheritable, so it must not be inherited by read and the default behaviour for SIGUSR1 is to terminate the program. -- System Information Debian Release: testing/unstable Kernel Version: Linux gondor 2.4.2-586tsc #20 Sat Mar 3 22:23:28 EST 2001 i586 unknown Versions of the packages bash depends on: ii base-files 2.2.6 Debian base system miscellaneous files ii libc6 2.2.2-1 GNU C Library: Shared libraries and Timezone ii libncurses5 5.0-8 Shared libraries for terminal handling ii libreadline4 4.1-4 GNU readline and history libraries, run-time