Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15787
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Martijn Dekker <martijn@inlv.org> |
| Newsgroups | gnu.bash.bug |
| Subject | Spurious recursive trap invocation warning |
| Date | Sun, 29 Dec 2019 19:34:46 +0000 |
| Lines | 29 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1648.1577648096.1979.bug-bash@gnu.org> (permalink) |
| References | <672c11dd-cf3c-f903-f222-20b6b06454be@inlv.org> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1577648096 11711 209.51.188.17 (29 Dec 2019 19:34:56 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | Bug reports for the GNU Bourne Again SHell <bug-bash@gnu.org> |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 |
| Content-Language | en-CA |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 3.x [fuzzy] |
| X-Received-From | 37.59.109.123 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.23 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <672c11dd-cf3c-f903-f222-20b6b06454be@inlv.org> |
| Xref | csiph.com gnu.bash.bug:15787 |
Show key headers only | View raw
The current git version of bash (at least on x86_64-apple-darwin18.7.0) gives a spurious warning about a recursive trap invocation when running the following more than once on an interactive shell. The trap unsets itself before resending the signal, so there should be no recursive invocation. bash-5.0$ echo $BASH_VERSION 5.0.11(1)-maint bash-5.0$ trap 'echo int; trap - INT; kill -s INT $$' INT; kill -s INT $$ int bash-5.0$ trap 'echo int; trap - INT; kill -s INT $$' INT; kill -s INT $$ bash: warning: run_pending_traps: recursive invocation while running trap for signal 2 int bash-5.0$ trap 'echo int; trap - INT; kill -s INT $$' INT; kill -s INT $$ bash: warning: run_pending_traps: recursive invocation while running trap for signal 2 int Thanks and happy new year, - M. -- modernish -- harness the shell https://github.com/modernish/modernish
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Spurious recursive trap invocation warning Martijn Dekker <martijn@inlv.org> - 2019-12-29 19:34 +0000
csiph-web