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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18858 invoked from network); 26 May 2023 03:31:22 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 May 2023 03:31:22 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1685071882; b=hvV5T+6822xAEZqDr5HaYo0uCtliAMPjrHiPEVGnv3BJYyF6p/LASQGzE2RTjqD9iaPAXBHFBI oZFh8h9NishsJy6D6z2r1IHobe2fA4q7q4RRJsUb96vOnPQGfXvbjrJFmryhNi68fh/55EdMCx ynIpAjulCKTLLfAkrah2hw5LbgXaoJHNLYVoMY+YZwrdThL6xlsox0NrGL/1aNaBiWIeUe5WZr vImICFMRRBg3IxmLXDpPFldZ6M7iWFMwEF4G49qUXs7PsuV140lSiQdEPCZLJfF9iP49d034pd Z76goNBl2iQUkxnI+KSX8I8srueygB3rvFMzte3PT9laFg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (farley.org) smtp.remote-ip=104.129.130.189; dmarc=none header.from=farley.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1685071882; bh=tc66xpmcfc+cIuxFAunk8QcugySweGMygKIlKWmz9Vs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: DKIM-Signature; b=V1FWDkjGACGKxYtyI7mpR34kYLx65JGDZswZjGMyuRwK1JskzxNkGZcCTOokfQnkLUmKFJkbRj ui5hkUrl5x4dBx3yL5u6pYfRMJeIurTTU2q0wLDDmUgcQFodMFbcFS+YwIrVNYcqu5D4lybuCI Z6ro3g0TgyBZI/VA/tiIvIBF2D+Hhc7cBbprBu2eX/ccFenWHiOgM5UtgBsrZqZS/5kKGDf0Xx HEeymxvPDhqKvKtmTvzB5lkXSWy5A27toCa22U+Y4sv+/+0pKDGwAS2z0WEx57g6HvCQjoLgbZ qttdH0EhvjkwlAXHFI3xeZ5BxteTVIZKLQK1HeOBvBiSCg==; 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:MIME-Version:Message-ID: Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=/NpqeqMmBaFEKSs0A3ef6x8QCmqDH2q6OJog1/bHFUk=; b=WujTzyJrKfXSDW4SrWFEPAeQzL CBL8BYDy6Vccd96ExwMpLEs/zJgasrOyyYqE51hxmc6BCx5WN0RCCNfU/WuLIURl0wRUg66J3z8mq WImuSqBht0MOIQfflykg3F3iJ9u685iVW93IpR1eQ/B8haroIbB9vM3eg3m0IckaYU6yby+dQLaEL K4k1UxcZ3hTXzKRsTXbQFAXs3McPWwprmpFSeXHhJRuLWDTPtwVuw3Cg4ASrACN692DUG97LOBLlB Io/iM4FLzFVnrjPihDaV8Mvw0Cd5xVHOnHf6KGES8B5J4sXouoZfl7/dn9DoEkmB2x9Yhj/Lhfr+x lHkA5+zQ==; Received: by zero.zsh.org with local id 1q2OAg-000NZC-Kc; Fri, 26 May 2023 03:31:18 +0000 Authentication-Results: zsh.org; iprev=pass (farley.org) smtp.remote-ip=104.129.130.189; dmarc=none header.from=farley.org; arc=none Received: from farley.org ([104.129.130.189]:57040) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1q2OAN-000NFE-B1; Fri, 26 May 2023 03:31:01 +0000 Received: from thor.farley.org (thor.farley.org [192.168.1.5]) by farley.org (8.17.1/8.17.1) with ESMTP id 34Q3UuNQ086287 for ; Thu, 25 May 2023 23:30:56 -0400 (EDT) (envelope-from sean+dev@farley.org) Date: Thu, 25 May 2023 23:30:56 -0400 (EDT) From: "Sean C. Farley" To: zsh-workers@zsh.org Subject: Unable to restore suspended function Message-ID: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Seq: 51795 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: I have a simple function to page output of ls. With Zsh 5.8.1 (and earlier), I could suspend it then restore it with fg. With Zsh 5.9, it enters some odd state where I have to call fg a few times before it exits (FreeBSD). It never restores less. I tested this with FreeBSD and Linux. It works as expected with both FreeBSD's sh and bash. Test environment (bare bones with no Zsh files in /tmp/zsh): mkdir /tmp/zsh env -i ZDOTDIR=/tmp/zsh TERM=${TERM} HOME=${HOME} USER=${USER} zsh pll() { /bin/ls -lF "${@}" | less; } Test output (FreeBSD): % pll /tmp/zsh total 0 (END) ---- Ctrl+z ---- zsh: done /bin/ls -lF "${@}" | zsh: suspended % fg [1] + done /bin/ls -lF "${@}" | continued zsh: done /bin/ls -lF "${@}" | zsh: suspended (tty output) zsh: done /bin/ls -lF "${@}" | zsh: suspended (tty output) % fg (END)zsh: done /bin/ls -lF "${@}" | zsh: suspended (tty input) zsh: done /bin/ls -lF "${@}" | zsh: suspended (tty input) % fg [1] + done /bin/ls -lF "${@}" | continued zsh: done /bin/ls -lF "${@}" | zsh: suspended (tty output) zsh: done /bin/ls -lF "${@}" | zsh: suspended (tty output) % fg [1] + done /bin/ls -lF "${@}" | continued Linux is similar but never exits. It just outputs the "tty output" blocks each time fg is called. Sean -- sean+dev@farley.org