zsh-workers
 help / color / mirror / code / Atom feed
* Bug report: `jobs` in `PROMPT` not showing latest suspend job
@ 2022-06-26  1:38 Grid
  2022-06-26  3:58 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Grid @ 2022-06-26  1:38 UTC (permalink / raw)
  To: zsh-workers

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug report: `jobs` in `PROMPT` not showing latest suspend job
  2022-06-26  1:38 Bug report: `jobs` in `PROMPT` not showing latest suspend job Grid
@ 2022-06-26  3:58 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2022-06-26  3:58 UTC (permalink / raw)
  To: Grid; +Cc: Zsh hackers list

On Sat, Jun 25, 2022 at 6:39 PM Grid <grid@umich.edu> wrote:
>
> PROMPT='
> $(jobs)
> %d > '

This is almost certainly the same issue reported in workers/50376, see
patch in workers/50379 already pushed to git head.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-26  3:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26  1:38 Bug report: `jobs` in `PROMPT` not showing latest suspend job Grid
2022-06-26  3:58 ` Bart Schaefer

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).