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 31666 invoked from network); 29 Apr 2021 01:05:17 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Apr 2021 01:05:17 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619658317; b=JNDOphJMMhQ/blB0QAxht3Jj/J20vdmFy90OsjMuVr20xcX6/rzmInIEmqXBH5qqjdbhkWSWdX obZxOD26s+a+O7Sh7tKbczbZXPB1zApmvRY5DxIrg551bRY4Vl2VqJALGObhaTFoI+wMXvNaci 7q/zDboYHjsRavlJR4UQpkfQK9oP49tT6Ld9cV+xnazS48zP/2de4wVqUuyk9Aq26qXizkJ+he mDpJ7n2vEHX3WBf9bhd7t7bxBzzAHYrS8zgOQuy06nIScQuuzmc6MdB9JvnznyddqEpO7EweyE nOjkpLf+SP1ahVxU0d+9DlGYBoZ81R49+ZjMHy3hse7lIA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f50.google.com) smtp.remote-ip=209.85.210.50; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1619658317; bh=6AYnZfkpCdxxorJ/rKXhP0/tGOCfRdlcg6w4GjZmP5U=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=M0XmA46EG2++4eJm5UlZvc8LhNJb3/Af0BJO53L0ThhQvVYWwu7rMj2/BTZgiECRZBK6HSvF6Y JsNLZUOoSqI0xVCCm/cF+PQp/w65f1/AHsM2iv8oBZ4pUhEghIn4FM7/TcoZPdCKLAOiP0S1wp /ubuF/gKfUzvGmpEmaWSyS2d1Yq0Frbv04lqapP9Wzr8qkbIc9mS42IQyqULnZdFJ4vZgKVsGW p1fRlfJTd9ziiKpFEazVGt96evqV5L4UPXMzNxv1thcv5oTMbavxsl8EITxRuA3t2+M9zTtQ9y fKoIvtkQd6mOGorO6ioh/fnGR/yG7+QQLprrDGNV39nLgg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ktVYWmLIK6xRsDIy5XB58SsZD+9cpj//fZVYkQWQVHI=; b=R4PKdtnB5u/fWulnlHHC6mdCpB VChfugR9afok/yPP9/iK2ORlqsNpBcdZ7JF1RK78Ikfk5Nv2WBBYTHZEx/r3UOrxKZKnEuOZHNO4f XjWIVtaUaEojebjJ+fw6mTOssj1z/XhA65kKNUcDwoipFmC4o431BmkSkUSQPfA3TlddLx1Rzj9Qa AwGjHk3VWWylmNeGD58pyfXaFnPP5EiGSeiDji71lSBRNA71tuY8nfF0ylqp3BsU9Sp3pXzsQVmpu NYHHHdmEZB7bHrD/NHKqLWqG7Q3JaNrAKJookrVlfaRolJw1S0MiC7fTNeFI5HRzKq/2qz//c+HdG cw2lzfdw==; Received: from authenticated user by zero.zsh.org with local id 1lbv7E-0009Kc-Hs; Thu, 29 Apr 2021 01:05:16 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f50.google.com) smtp.remote-ip=209.85.210.50; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f50.google.com ([209.85.210.50]:39926) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lbv6j-00095M-Ai; Thu, 29 Apr 2021 01:04:46 +0000 Received: by mail-ot1-f50.google.com with SMTP id 65-20020a9d03470000b02902808b4aec6dso55277933otv.6 for ; Wed, 28 Apr 2021 18:04:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ktVYWmLIK6xRsDIy5XB58SsZD+9cpj//fZVYkQWQVHI=; b=YDAUjY04eMJdx+n/Cq6bnFPpMljvjUC/Mvt7s0cJ+c8gIAojyHrfKIIS1qKjGeYkGE Om5UsieF+kXcDCcFmNyBQzMMYh7/bjEqD8iBiKheS5oGR7+sH91EB2MAKlo+crbRNSSc JWeP2VOdIG9dRxg8flXIbemWbyFxBv5D9uVKUulZ151oLiG7gM06f0D0o74iQh24BlNE vy8pTkd2Chz+YneBPFs68sGOmKMym34ydt/WUFGkiQVZ67SSVbrPPWrbxF5/gVXaE9lx 6oDE9dkzwAbf34Je4+HQUYXDSJf8YOVHNSmOIcxiVsmX+CdOrnyXKuGyBsjuN/ZY17kz +iAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ktVYWmLIK6xRsDIy5XB58SsZD+9cpj//fZVYkQWQVHI=; b=EzU6C50AN8CDDXBqJ7yqc7M9WHo3VKku3UPftLDWGbMtGOqYjPzFXTF/CTFsCxqDf8 5J6WJ35CyO1b4vO0vuj/hM5XR8nwULqTiiLZVztTBnky4+XSFbDx8Jj7AUraWftPKgOE AsDP/Vw1wKmIyW+T1/kuTbdcGsuXTlAjwSb8FAie9kUk03pO+9sG7ZXEwXQC6BUsrwbA oG1Rr/e8qYKLr+/t9KhJMOMF7pv5DECHRNlwApOkb9Kt1Bb3qdBeW22qM2dhMDE0Jlmn n3MEneYm99aSJtsxFaXdvtXpJ/gK310XkJq26ZM0a9tTM1lxflKd535+Ap1MAG9KgvfA VdpA== X-Gm-Message-State: AOAM53095i9ZCQEWHBu6f/gmbYXwA5lj/MmSd+nbEtaTG/3N2PKCUIWD bmGI9Lse3Kdy6mDSCWRl9hITlN7o3uIAPb66zFxga9OUrlw= X-Google-Smtp-Source: ABdhPJxuyY108IWoTMeD7tetwZdwZzMggq9coWhmfTW4eFIbv/ZyF9ZmQIXMjal/YyfObrr7m+TvKNNxtLd/kXsalNc= X-Received: by 2002:a05:6830:55b:: with SMTP id l27mr26001584otb.260.1619658283610; Wed, 28 Apr 2021 18:04:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Wed, 28 Apr 2021 18:04:32 -0700 Message-ID: Subject: Re: The curious incident of the feep in the night-time To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48737 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: On Tue, Apr 27, 2021 at 2:35 PM Bart Schaefer wrote: > > [...] The reference to "what > interrupt set" seems to imply that it is sendbreak() that should be > assigning lastval, because it is simulating a SIGINT and the handler > for SIGINT assigns lastval directly. > > The other question is, to what should lastval be set? With a quick grep for integer assignments to lastval, the shell appears to use only 1, 127, or 128+SIGxx. Unless someone knows of a different circumstance, it appears sendbreak() should probably just continue to use lastval = 1.