Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] zsh fails to resume function
- X-seq: zsh-workers 52330
- From: Paolo Perego <paolo.perego@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [BUG] zsh fails to resume function
- Date: Wed, 29 Nov 2023 17:52:59 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=z7rG089s0o2XWmDBYKdI6Py/bM2xl9aFVkD+L79rAYI=; b=jrA1AcwxOMWLnpfU+hgWvxZTtbMCBrggVB+R52nvhqnpClmGWU6E+FrwGp7yxhQSRQtZVnnzgo9Ydq3gL0k9qRr57vs91I4WWS9Q/8j84UHbl2GUc2A+E5Fa9EeLhvbcZMwEhaUb563lKhSXEUbShGQXTBnV4Gvm5X3cNb81nf5PfqOrJmI01AC+QU5JJGujcIwhDNGbBtF8ILS06n4zgmVNhjug5tZQD6JZ7rkVzBblZVPNvZRFmGwgidgYxuv975M9zB3owqURoBo2hMvNrbC+YG23cAm5Wo5NdrA6WoUB0rX+iSNO2Y8AWEDmOfS8xUQj8pf9n5Li9SorHnUaeg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q9qMXUamMgGe3hE8SZ/hSohCTh7rZCxaEN80VGJKH2C1qSY1QUoFp5y1/PNtPylW5pbb7py3Crj0BxoS1J4ySz7D5nGJTwyNGKFO9mdqKjwVLmgWsL/Scpy8jOVpfzjFWJxsZjB7+G+kT3mHV8LFLQbYImbSJjV+Woz6y43oEM40xHl6Bdtla5m9fhg8iQejFQ7JIB0rI90O/bAgs/SIHsn8wpntNrc2TyZOPPG1stjGZ+/FuHlCiqbKYZnzpVxJiicWtC3pMiAUWqVJXdj7IW019LL0nE2Vv04GejuwjjOuk7IOhNhij0k+ialuWb5nwh0R2yf8A+sZ/cX7/52ZAA==
- Archived-at: <https://zsh.org/workers/52330>
- List-id: <zsh-workers.zsh.org>
Hi list, I'm Paolo the zsh maintainer for openSUSE and SLE. A user
reported us a bug, we tracked in our bugzilla instance [1].
It seems zsh fails to re-enter a nested command putted in background
when defined in a function.
I reproduced the bug on a vanilla 5.9 installation, so the bug is not
introduced by any change made downstream.
The followings are the step to reproduced the issue:
% zsh -f
% fc -l 1 -1 2>&1|less +G #enter less without using a function
^Z #suspend less
zsh: done fc -l 1 -1 2>&1 |
zsh: suspended less +G
% fg #zsh re-enters less properly
: q
[1] - done fc -l 1 -1 2>&1 |
continued less +G
% h(){ fc -l 1 -1 2>&1|less +G;}
% h #enter less in a function
^Z #suspend less
zsh: done fc -l 1 -1 2>&1 |
zsh: suspended
% fg #zsh fails to re-enter less
[1] + done fc -l 1 -1 2>&1 |
continued
zsh: done fc -l 1 -1 2>&1 |
zsh: suspended (tty output)
zsh: done fc -l 1 -1 2>&1 |
zsh: suspended (tty output)
%
Can you please confirm that this is a bug for you and give us a link to
backtrack the progress?
Thanks
Paolo
[1] https://bugzilla.suse.com/show_bug.cgi?id=1217304
--
(*_ Paolo Perego @thesp0nge
//\ Software security engineer suse.com
V_/_ 0A1A 2003 9AE0 B09C 51A4 7ACD FC0D CEA6 0806 294B
Attachment:
signature.asc
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author