Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
empty job texts for suspended .zshrc jobs
- X-seq: zsh-workers 40907
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: empty job texts for suspended .zshrc jobs
- Date: Mon, 27 Mar 2017 11:20:16 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=ZLoP2L66ge+D0kGhzzwaoGHBeJ9d0Rk1AK3FxDJ0WoI=; b=J4OS9XDfQM5c/PMpE1qb9hdTdZkWHWaQTWn7NtqRBHPs5NbkyW5OiNJwg9kkNupDHs pwCg/bXs2Z8JwBBEMuiVqQ7ogQnFxXgZk6jSOxZMl4kH6uVUkaQapMu4X660aQRI1au/ 0Qw9eIW99hcfpSToTYGnC/Ro8hBVyflt70UnZKG/HmY8ePyP+PHZ9yrpxtAeE6JVUb0p futgX9aVR61za5btdQwkp1kpdCdvyG32gml3t7havlFTslE1ARobnCV+VkGZP2A4MGka OmWRurMycQNe/BNVg8wYeuEthvXFs1BNNRvtON6Q5V9CV7ykSy/KB2EGVb2QRyRDXaib pfqw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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