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

Re: $! - PID of disowned jobs



On Mar 15,  7:47pm, Atom Smasher wrote:
}
} the docs say this about "$!":
}  	! <S> The process ID of the last command started in the background
}  	with &, or put into the background with the bg builtin.
} 
} is it a bug or undocumented feature that it also works with jobs that are 
} disowned with "&|" or "&!"?

I would say it's both documented and a feature.  Starting something with
"&|" is still starting something in the background with "&" -- it's just
shorthand for "something & disown ;"



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