Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Bug report: `jobs` in `PROMPT` not showing latest suspend job



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