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

empty job texts for suspended .zshrc jobs



Version: 5.3.1 and 5.1.1 on Debian, Ubuntu Linux amd64.

$ tail -n 3 .zshrc
sleep 10 | sleep 11 &
jobs
sleep 8 | sleep 9
$ zsh
[1] 10260 10261
[1]  + running    sleep 10 | sleep 11
^Z
zsh: suspended   |
$ printf '<%s> => <%s>\n' "${(@kv)jobtexts}" | cat -vte
<1> => <sleep 10 | sleep 11>$
<2> => < | >$
$ printf '<%s> => <%s>\n' "${(@kv)jobstates}"
<1> => <running:-:10260=running:10261=running>
<2> => <suspended:+:10262=suspended:10263=suspended>

See how the second job (the last line in the zshrc), suspended
with ^Z, has an empty job text for both components of the pipe
line above.

That does not happen for jobs started in background (even if
they're suspended later on).

-- 
Stephane



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