From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1091 invoked from network); 26 Apr 2022 00:37:27 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2022 00:37:27 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1650933447; b=e+tUYPV++3UakiQe28HGA8BoyOWw+AT0rWRoICYXjohWVV7vJNPEARPi1N66wgzn2gYrzoSPPQ C+n/nyskVivfDJJb9LP3rbWZrwFs1BtXkcev0xrn63Dv6G2MTD2EdkvFSY0M/SrdkCbjDu166k c9kEtULDxztZxBiWNQBlCOzumC7v28xweXVUcZS/WWuhbmxohI8N2Sv8Vz7zTCBO63U/KYyIFG dPGKOdKLZMSIxVLKFSS8ZQ4GJc7Y4BmUbBlaxwrAbO6SlelAdf1WBFM6s7X69vkcoyAhJP6tRb UnrqefpHySA3mWWZ88+hAgR/eIVGZ2Mi7ArZFjEzA22Wcg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1650933447; bh=uQ42tr6qSjlj0HFmyAXCbQZfEaIG6G711GZ2rl34ZYY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:DKIM-Signature; b=JdxqGegSuozHcc/A+ptPVJHU1GPqL9srhQ3pBqjemRZ/2yz0RkS4xX1ImnLcjWgTx+jwSH2LoE yDh1hcBdMtq1SzMHc5UsVzoiesedU7hcUHyIb4zYuUyDB602IEvXIZ6UtjSwcT1ZncunS6ahtR Cx9xu0whWg8GWAVI+APUIRWti7Dg5s6wOVIzgCYNk1QLkemZNhJ8196WQDZHMPuORZ0HJSvuSl y9O9tbo6OM0YsoPkcquDlOTg+w+XvVaVAkhuLgEp4eOgFsTAAfL8e9+N9FLVttmxl9l13H5IFO 1Y57opg/MZxXEN6gzOMQpP7b6vKAO0YmNWcsazk4FFYizw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=vpiB2CYrdaz9cidnGqNYoA8QKfmvzfqt39rZSV0jq00=; b=i3TDIQJVgdImkO+yLW+I6+NrLq Hw6MbKDuY0vsfoIf2k+5KS+sxHnNWUJ4hWMWjrEyF64ZJzJM/AJxvRseUuaIaxH334t2ry8jTEyR1 veWmnFxGNELdjz5Y2iVljOxRWcgtRVd+RHUdp5ok3Sn50yujq6t20PGgBc2h07Wx56MuAXseQ+Pxq cohM2OK0svMBYLFOlbNnEUhZHzmIz1KO4RiCwextjvZEJpZtZ7Y0Q/DhvhgXn6PyTbuaLURiY2+Ds WmhiX/l/LnDJnsBoX7XCL4E0O6DJIb4O054tcP9XiQ/2Slam7DoTnbjFTxyhESIEmRiE08o3s2ONR 65/JPllA==; Received: from authenticated user by zero.zsh.org with local id 1nj9Cn-000JVR-Gi; Tue, 26 Apr 2022 00:37:25 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:52652) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nj9CH-000JB1-66; Tue, 26 Apr 2022 00:36:53 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 67FE47B; Tue, 26 Apr 2022 02:36:50 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 050572800293; Tue, 26 Apr 2022 02:36:50 +0200 (CEST) Date: Tue, 26 Apr 2022 02:36:49 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Ctrl-\ while executing a pipeline made zsh quit Message-ID: <20220426003649.GA100943@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.3+10 (6e7437c4) vl-138565 (2022-04-12) X-Seq: 50094 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: With zsh 5.8.1 under Linux (zsh 5.8.1-1 Debian/unstable package), while I was executing a pipeline, I typed Ctrl-\ to interrupt it (Ctrl-C had no effect), which made unexpectedly zsh quit: SIGQUIT should interrupt the commands zsh starts, not the interactive shell itself. The backtrace: Core was generated by `zsh'. Program terminated with signal SIGQUIT, Quit. #0 0x00007f6e9cd2dbe8 in __GI___sigsuspend (set=set@entry=0x7ffc0653d8e0) at ../sysdeps/unix/sysv/linux/sigsuspend.c:26 26 ../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory. (gdb) bt #0 0x00007f6e9cd2dbe8 in __GI___sigsuspend (set=set@entry=0x7ffc0653d8e0) at ../sysdeps/unix/sysv/linux/sigsuspend.c:26 #1 0x000056392a430207 in signal_suspend (sig=sig@entry=17, wait_cmd=wait_cmd@entry=0) at ../../Src/signals.c:393 #2 0x000056392a3fae2f in zwaitjob (job=, wait_cmd=0) at ../../Src/jobs.c:1603 #3 0x000056392a3fb544 in waitjobs () at ../../Src/jobs.c:1673 #4 0x000056392a3dc64b in execpline (state=state@entry=0x7ffc0653de20, slcode=, how=, how@entry=18, last1=0) at ../../Src/exec.c:1759 #5 0x000056392a3dd4a7 in execlist (state=state@entry=0x7ffc0653de20, dont_change_job=dont_change_job@entry=0, exiting=exiting@entry=0) at ../../Src/exec.c:1419 #6 0x000056392a3dd9a2 in execode (p=p@entry=0x7f6e9d066580, dont_change_job=dont_change_job@entry=0, exiting=exiting@entry=0, context=context@entry=0x56392a452285 "toplevel") at ../../Src/exec.c:1198 #7 0x000056392a3f3254 in loop (toplevel=toplevel@entry=1, justonce=justonce@entry=0) at ../../Src/init.c:212 #8 0x000056392a3f6a2e in zsh_main (argc=, argv=) at ../../Src/init.c:1779 #9 0x00007f6e9cd187fd in __libc_start_main (main=0x56392a3bad40
, argc=1, argv=0x7ffc0653e1b8, init=, fini=, rtld_fini=, stack_end=0x7ffc0653e1a8) at ../csu/libc-start.c:332 #10 0x000056392a3bad7a in _start () The pipeline was: svn log | m where "svn" is aliased to "svnwrapper" (which is a sh script reexecuted as zsh) and "m" is aliased to "mless", which is the following shell function: mless () { emulate -LR zsh if [[ "$argv[-1]" == - ]] then read line && less "$@[1,-2]" "$line" else less "$@" fi } -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)