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 2725 invoked from network); 7 Oct 2021 01:04:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Oct 2021 01:04:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633568644; b=jBEGO3m4Q1ApDqxWI/JVsc/8Z4mGcBTLxvVdgirBp2kZjQFvtuhW7AO4pYCsRXcK0xDlEdCay2 af29BWT00W35wOhz+Eimb0kG+pA5o0Kz/P228vZlq9eCJbizqpADwtuoih8uZueHQtnyojh7lp JebN+wtm+ED7I4FMNd3hxmm9rLY5gJ9LkNniVoZdZq5Z0Sm44RUfya1I1UA5UT6aOi08FMfdTL OnOgOU0MFfn5QE5mPX7261utZIBm8u1uX9EupUolbL4gI5uFNlQztb/NGaE+KDKeIuBeGcXhnn PmJ+zqHH6zG5KSQXXWzDqsRcCYB55jqiClwXSdJNvl5ZSg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f173.google.com) smtp.remote-ip=209.85.219.173; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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-20210803; t=1633568644; bh=f4QxyFZ7a6BRjBLaFXOFqNNMoY69/I8Ri0hDoxHoXHY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=pLqXfMfay11bc85AACLukmZ3Og4BqFe9JbfZ45Kv+hQ018Sb22YASu70qkZFMJrUlvvbhcaOSJ ZoNaO1pRdxfxG8wxSk3vSMMszxKrfWFPfqDbAEqE46yZmM/IZT2qcaQ1xZ88tLWa0r7LHqqkgW 1E/WL3MgC6NdRqF92WWQ76JDEM8p8ACzkjKbY9ArViS4RMTP2ulBUp3RQz4LQ8RrY4pMOq/1A0 OsIXrlw6tnKDxbGu0LJNoQRu3mk1EdZEH1SquMOw/0GOprsEYybdbVWHb2TS+1U3VISMhkvtKT nBIc6VdvQ8Mzk+7qvtb+IOyQThgN9XKvnpCUU6JYY75JRA==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=MrtyNd/4etn21O1YNyNHEInRM2W4FsZP3TI3xFzedgM=; b=Xg80QpP1Oy/eqQXwVuhPR0/H7l PerkAco6Y86UpplLdBB2I4DIS7RuHrrEwS9HAaa+iyPgxKPXLcivBhte/PtKkP1BooywQK7ls5sie OiP5nenRciOSptu3XvGNQyt0ho1HyLvz/d8HUQEv9q76M1v3o9y/V/OsCuvmw0Y+zzJXrkGw48G2w FYoR39TbJtO28Zygpg0U4tMFSSGO49Q/SvzipKO/6xr3mH6FMIjaVrWjRyRPDwXa6WMj8hAV4cFF2 Kg2gLO/8Yz1s15EhcmpBpaPlbjZ0PTpf5+jYBJMUY6bo5dxVLnXkRtVOB4vnw1McLne3z1KFd7boL DnDh0jTQ==; Received: from authenticated user by zero.zsh.org with local id 1mYHpL-00072U-AJ; Thu, 07 Oct 2021 01:04:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f173.google.com) smtp.remote-ip=209.85.219.173; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f173.google.com ([209.85.219.173]:42797) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mYHoo-0006jj-Vl; Thu, 07 Oct 2021 01:03:32 +0000 Received: by mail-yb1-f173.google.com with SMTP id u32so9475133ybd.9 for ; Wed, 06 Oct 2021 18:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MrtyNd/4etn21O1YNyNHEInRM2W4FsZP3TI3xFzedgM=; b=UYXLh/CnLMMzXouLh6cXMHtyC8B4LlqMG7I9XL/IEKXIXpSps48HvgtZoh+QFp0aC+ OvaxrCfp7sYmlxTY8NQ14M+N7DZkZ2VLRY8GcuEriA+cwia6UazMsh9tyRZ781/E6wuM Hl9Jk201o3dSEr3VTjvrGy9KryOE8VjMNWOntKR99TAJ25KRTDNCQkP3xQLUlSGIJaCE u3ho6ajIZLDcskJlD6ar0T/BBsnNN6nCyKJJSfGjmSufMsoQRVML4qMC4IenQ4I5ABlE dQW7AZx1BoHE+hck8+iuKdzAwDxJjtO+4VNZKeH23rH6rS5Z14/54JMtAFkHyxdfZF2q 87XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MrtyNd/4etn21O1YNyNHEInRM2W4FsZP3TI3xFzedgM=; b=WbbLAGEi8vHFkS2fLHU0/tGWb13kP/J4gBhKkPn592MYLqIwtDKo669vUY1pU9nFY8 Cp2dpD5un+aixkDX8M4lpsWbRLTNlOjdRuE7GjC9meKOWt7SAAriqkbAV6E10ZTEMFhq qTqN1vFvjniwZnuYwNwZrjGhsmUOZ48shu2t1b9FbkYLCHWO2VXduqArBIyF8bZOOrzh Z4gJgPlf48wMUHDYZaFIM6yzIlyHB236YKUSmXJmTWAVDJe+X8JHyTuHAkTpMi6SD+PL aFQCbyx7WjOCjd4K1B/L5rTE+rjDN3K1GhgRgOAcHTlm/LsbBpRNC1nP9ZcQCNw9IWTn I8vw== X-Gm-Message-State: AOAM531UB+4P2qtcFxjNkAShs0LbNfDwTsXnrgXY9dK2h30sPe7gt4SV 6e+ekyaPmXJxXMhJ6yESnSiegKjFXEmPxUyzGaK5tA== X-Google-Smtp-Source: ABdhPJyjFVy/CX88yT+5kIRPGk8ecac3T17nyT5acP297gku0P9ui1inBL009M9iKi1zv3HW1Ccbc9k+dshAcDcLlyE= X-Received: by 2002:a25:bb93:: with SMTP id y19mr1569639ybg.266.1633568609192; Wed, 06 Oct 2021 18:03:29 -0700 (PDT) MIME-Version: 1.0 References: <7CE5FEA4-52A2-478B-98E4-1C30F5D6C2CF@principlestudios.com> In-Reply-To: <7CE5FEA4-52A2-478B-98E4-1C30F5D6C2CF@principlestudios.com> From: Bart Schaefer Date: Wed, 6 Oct 2021 18:03:18 -0700 Message-ID: Subject: Re: Strange terminal resizing behavior on macOS 11.6 and calling pwsh under zsh To: Andrew Owen Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49460 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 Wed, Oct 6, 2021 at 4:06 PM Andrew Owen wrote: > > I seem to have found a curious bug in how zsh interacts with pwsh on macOS 11.6. I first reported it to the pwsh team, here: https://github.com/PowerShell/PowerShell/issues/16174 I presume we can ignore the typo in https://github.com/PowerShell/PowerShell/issues/16174#issuecomment-934715868 ("/usr/local/bin pwsh ..."). "Process exited 130" normally means that a QUIT signal was received somehow. Zsh itself ignores QUIT but restores the default behavior when starting a subprocess, unless that signal has been explicitly ignored (here I assume the MacOS zsh is built with POSIX_SIGNALS defined). The handling of INT and QUIT also changes when the zsh MONITOR option is not set, which typically happens when zsh is not interactive (as with #! it is not because it's running a script file). I would suggest two things: 1) Examine the pwsh process with dtruss while attempting to reproduce the issue, to give some hint of whether QUIT is actually being received. Maybe you can figure out from where. 2) Try using "exec /usr/local/bin/pwsh ..." in the script so the zsh parent is removed from the process tree, and then try to reproduce the issue.