From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: job control from script
Date: Mon, 12 Dec 2005 01:07:06 +0000 [thread overview]
Message-ID: <1051212010706.ZM20821@candle.brasslantern.com> (raw)
In-Reply-To: <20051211233432.59102a21.rgo@mail.interzet.ru>
On Dec 11, 11:34pm, rgo wrote:
}
} > jobs -p | while read jnum jpid text; do kill $jpid; done
}
} zsh-4.2.5 [...] but pipe doesn't work.
Hmm, yes, there's definitely a bug. Running "jobs" in a subshell of a non-
interactive shell hangs forever, almost as if "wait" had been executed,
even if MONITOR is set.
} > setopt MONITOR HUP
} > function TRAPINT() { kill -HUP $$ }
}
} This is really work :). But gives a warning.
Change it to
function TRAPINT() { exec 2>/dev/null; kill -HUP $$ }
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
prev parent reply other threads:[~2005-12-12 1:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-11 17:21 rgo
2005-12-11 19:58 ` Bart Schaefer
[not found] ` <20051211233432.59102a21.rgo@mail.interzet.ru>
2005-12-12 1:07 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1051212010706.ZM20821@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).