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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13085 invoked from network); 17 Oct 2022 09:18:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Oct 2022 09:18:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665998296; b=iQGbhzBywAky3tkGmUtc9cBIU+SBcXW6UQ5L5NQ3M9/klQK+OL2qO6410QYghsIG7lLeSumKwX i6+YPQbf/SZZSo/R33+LkckrvC12z2dhtELnlt8Dqw/SQ+8SZXT9NHRLfGNs+oxSgPziW2agB2 UbURewf3grIz15V7cTG+SOvhHD/i/dXrJbKwGX2qrHlJ77gV0pL8r+XA0m0/qpvy68ABSfxCAZ y+VmEAt7jk7tX6151yzDXg5oOgdcGaySR0T1SLMQHAYha4GZ9dtf59PeHyQkSoKVJNxYKO/o+H msRfdidbu/50zHZmGvVsq5sloNVcZrmFY2cGdNu7rxIEYA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (gatalith.at) smtp.remote-ip=45.132.245.72; dkim=pass header.d=gatalith.at header.s=dkim header.a=rsa-sha256; dmarc=pass header.from=gatalith.at; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1665998296; bh=WnfLtjh2pIMOK+BKcjVxmN6xMUlp8oB7pgscQClkkhE=; 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:DKIM-Signature; b=jPumeJPMsb5s2zhInkBkFH1JJ03+o7QtJ1OGg6UwU1uYShIQ38BfFN0QZ0eNvTQEgEqNd0gunC brXWHqYrGY1d+8RHTI1gO2Wwye1ONtfDX21cWMvD9I5qiSgAcH02fr7QhhMuCEO65DJsXxwPyd ovQnUFLpHt1QWRMxwAkli0MVXBAFq14Kq6Srv1mj1Fyo+peEN5u/dE42Aytd5UYpbneTxzJ2lO CEXS9fLuQs0klrVkdWGht/ZCIuuKzv+x+MiJ30Os59Fd0UNLiCclK4V1NkYQKyXKl4eHRoaFkG 8lmHGl/raNeCVodNfLsZvmuq2udsJta3nAmZA9eTd52l9g==; 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=gQHYcBFWAGzJS8TF5iDcZswiZDzZ+zVSh1U9P1jKpaw=; b=eVWvzugAIDyIrnijDVqXh0QNZJ 7GTxbkvlM3HbUcdSncNpRp8BO8BsEX66tUs/NkZWyzyXYBkOXEG6owFHOHwbvyTQA20PO7AGR+iq9 ED4ZKM3OE3LuuJGnzO9zR0f7QyhZ2IWtgHIUHskV+/Fqy196y+BRsdVKEBLpnD+x0RLLK9qka+hxy IVHfkf5EarBU4+//2okqTc3oAr4sqPIwyAMA3yo5Enrm8xVJ8J9ZP5tRyeyXseOte8l76ApUgVXx9 IFlQstA4dg3NFB59UnGXIoutCCLCA4WjBhNH4OfBORPRTIPDimm2UvHeDQZ+oodIAg/h6VGimQZov apAg8cYA==; Received: by zero.zsh.org with local id 1okMGF-000NzF-MK; Mon, 17 Oct 2022 09:18:15 +0000 Authentication-Results: zsh.org; iprev=pass (gatalith.at) smtp.remote-ip=45.132.245.72; dkim=pass header.d=gatalith.at header.s=dkim header.a=rsa-sha256; dmarc=pass header.from=gatalith.at; arc=none Received: from gatalith.at ([45.132.245.72]:63991) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1okMFy-000NgI-4W; Mon, 17 Oct 2022 09:17:59 +0000 Received: from yt.nih.at (2a02-8388-0bc1-1580-92d1-0456-cebc-330d.cable.dynamic.v6.surfer.at [IPv6:2a02:8388:bc1:1580:92d1:456:cebc:330d]) by gatalith.at (Postfix) with ESMTPSA id 14531390A36 for ; Mon, 17 Oct 2022 11:17:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gatalith.at; s=dkim; t=1665998277; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=gQHYcBFWAGzJS8TF5iDcZswiZDzZ+zVSh1U9P1jKpaw=; b=dbg40EzkYpCevR0V2855+KypB1bAKWxhnAcPpdpraw60D182vnrNtAcIxA9PMV1CXo+gWv nIxgAC0RLMN5PZHzRlLbVjORGlKBKeMvlmynIyko8942Zd3z+owgaApCVUnIbbKGC4cpVx 3gXNXRnVQL45uF7iGaQ4G+eSvgYsh6c= Date: Mon, 17 Oct 2022 11:17:53 +0200 From: Thomas Klausner To: zsh-workers@zsh.org Subject: problem with 'ls | less' shell function Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Seq: 50785 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: Hi! I recently noticed a problem in zsh 5.9 (as built from pkgsrc) on NetBSD 9.99.100. Since I didn't notice it before it could be related to a change in NetBSD (I'm following the latest version), but I've been told that the issue can be reproduced on Ubuntu 19.04 and FreeBSD 13.1 too; but not in zsh 5.8.1, nor in most other shells though. The discussion on the NetBSD mailing list can be read in this thread: https://mail-index.netbsd.org/current-users/2022/10/12/msg043076.html but I'll summarize the issue I see in zsh here. I have a shell function I've been using for ages: dir() { ls -al "$@" | less; } Recently, when I tried suspending this with CTRL-Z and then resuming it with 'fg', I get: $ dir (CTRL-Z) zsh: done ls -al "$@" | zsh: suspended $ fg [1] + done ls -al "$@" | continued zsh: done ls -al "$@" | zsh: suspended (tty output) zsh: done ls -al "$@" | zsh: suspended (tty output) The same thing works in NetBSD's ksh: $ fg ls -al "$@" | less (CTRL-Z) [1] + Done ls -al "$@" | Stopped less or in bash $ fg ls -al "$@" | less (CTRL-Z) [1]+ Stopped ls -al "$@" | less If I use '/bin/ls' in the shell function instead of 'ls', it works fine. Any ideas what the issue could be? Cheers, Thomas (I'll try to send this without subscribing first, since this seems to be the address intended for bug reports.)