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

Re: Problems with zsh's job control and running jobs



Bart Schaefer wrote:

> On Sep 2,  3:30pm, Peter Stephenson wrote:
> } Subject: Re: Problems with zsh's job control and running jobs
> }
> }   jobs | while read job; do
> }     if [[ $job = \[(#b)([[:digit:]]##)\]*running* ]]; then
> }       disown %$match[1]
> }     fi
> }   done
> 
>     disown %${(k)^jobstates[(R)*=running*]}

This works but it complains at each prompt where there are no jobs to hide.

precmd_disown:disown:12: no current job

-- 

John Eikenberry
[jae@xxxxxxxx - http://zhar.net]
[PGP public key @ http://zhar.net/jae_at_zhar_net.gpg]
______________________________________________________________
"Perfection is attained, not when no more can be added, but when no more 
 can be removed." -- Antoine de Saint-Exupery

Attachment: signature.asc
Description: Digital signature



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