Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problems with zsh's job control and running jobs
- X-seq: zsh-users 15367
- From: John Eikenberry <jae@xxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Problems with zsh's job control and running jobs
- Date: Sat, 4 Sep 2010 14:03:16 -0400
- In-reply-to: <100902085838.ZM12678@xxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: John Eikenberry <jae@xxxxxxxx>, zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20100902134747.GA30650@xxxxxxxxxxxxxxxxxx> <20100902153026.192301a3@xxxxxxx> <100902085838.ZM12678@xxxxxxxxxxxxxxxxxxxxxx>
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