zsh-workers
 help / color / mirror / code / Atom feed
* empty job texts for suspended .zshrc jobs
@ 2017-03-27 10:20 Stephane Chazelas
  2017-03-30 21:36 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Stephane Chazelas @ 2017-03-27 10:20 UTC (permalink / raw)
  To: Zsh hackers list

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


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

end of thread, other threads:[~2017-04-04 22:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-27 10:20 empty job texts for suspended .zshrc jobs Stephane Chazelas
2017-03-30 21:36 ` Bart Schaefer
2017-04-04  9:30   ` Peter Stephenson
2017-04-04 22:44     ` 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).