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

Parameter $! documentation bug



The zshparam(1) man page says:

    ! <S>  The process ID of the last command started in the background
           with &, or put into the background with the bg builtin.

but

zira% sleep 10 &
[1] 20475
zira% coproc sleep 10
[2] 20478
zira% echo $!
20478

I assume that coproc commands are also concerned by $!.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



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