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

Re: empty job texts for suspended .zshrc jobs



On Mar 27, 11:20am, Stephane Chazelas wrote:
}
} zsh: suspended   |

Hm, this is because what you've actually suspended is the "source"
command; the pipeline is the foreground job of the script file that
"source" is reading.  It's just that "source" doesn't get a slot
in the job table because semantically it's masquerading as the top
level shell.

I suspect this is tangentially related to the gymnastics that zsh
performs when you suspend a loop construct and an implicit fork has
to be performed to add a new job table entry.  It's just incomplete
for the case of "source".

The missing jobtext in this example dates back at least to 4.2.0.
In zsh-2.4 the job state is garbage and the shell crashes when the
sleeps ends.  The last version I can try where it appears to work as
expected is zsh-3.0.5.



Messages sorted by: Reverse Date, Date, Thread, Author