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

Re: Parameter $! documentation bug



On Sat, Jul 6, 2019 at 5:18 PM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> I assume that coproc commands are also concerned by $!.

IIRC coproc commands did not, originally, get job table entries, and
although it has been years since they began to do so, the doc for $!
probably predates that.

diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index 9ad228679..9acd52f2e 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -629,7 +629,7 @@ startitem()
 vindex(!)
 item(tt(!) <S>)(
 The process ID of the last command started in the background with tt(&),
-or put into the background with the tt(bg) builtin.
+put into the background with the tt(bg) builtin, or spawned with tt(coproc).
 )
 vindex(#)
 item(tt(#) <S>)(



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