From: Paolo Perego <paolo.perego@suse.com>
To: zsh-workers@zsh.org
Subject: [BUG] zsh fails to resume function
Date: Wed, 29 Nov 2023 17:52:59 +0100 [thread overview]
Message-ID: <4a7436b9-e444-4858-ad0d-a9913657ddef@DB9PR04MB9626.eurprd04.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1631 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2023-11-29 17:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-29 16:52 Paolo Perego [this message]
2023-11-29 18:25 ` Bart Schaefer
2023-11-29 17:22 Paolo Perego
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4a7436b9-e444-4858-ad0d-a9913657ddef@DB9PR04MB9626.eurprd04.prod.outlook.com \
--to=paolo.perego@suse.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).