Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug report: `jobs` in `PROMPT` not showing latest suspend job
- X-seq: zsh-workers 50384
- From: Grid <grid@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Bug report: `jobs` in `PROMPT` not showing latest suspend job
- Date: Sat, 25 Jun 2022 21:38:18 -0400
- Archived-at: <https://zsh.org/workers/50384>
- List-id: <zsh-workers.zsh.org>
Hi,
I run into an issue after upgrading to zsh 5.9 from 5.8.1. Here is a
minimal zshrc to reproduce this bug:
set -o PROMPT_SUBST
PROMPT='
$(jobs)
%d > '
Launch any program, e.g. cat, and press <C-z> to suspend it. No job will
be printed in the prompt. Launch another program, e.g. vim, and suspend
it also. This time [1] - suspended cat is printed. Suspending a third
program would cause both cat and vim to show up in the prompt.
In zsh 5.8.1, all background jobs are correctly listed. This is the
expected behavior.
Best regards,
Grid
Messages sorted by:
Reverse Date,
Date,
Thread,
Author