From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12841 invoked by alias); 28 Aug 2013 13:38:36 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17948 Received: (qmail 26590 invoked from network); 28 Aug 2013 13:38:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at necoro.eu does not designate permitted sender hosts) Message-ID: <521DFD56.3040904@necoro.eu> Date: Wed, 28 Aug 2013 15:38:30 +0200 From: =?UTF-8?B?UmVuw6kgTmV1bWFubg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130826 Thunderbird/17.0.8 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: Re: Implicit killing of subprocesses References: <521DF308.4040106@necoro.eu> <20130828142651.4c930ba4@pwslap01u.europe.root.pri> In-Reply-To: <20130828142651.4c930ba4@pwslap01u.europe.root.pri> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Am 28.08.2013 15:26, schrieb Peter Stephenson: > On Wed, 28 Aug 2013 14:54:32 +0200 > René Neumann wrote: >> When I use >> >> coproc dbus-monitor >> while read -p line; do ... done >> >> the dbus-monitor process lurks around after the script finishes >> (breaking or returning from the loop). > > Hmm... assuming this is interactive, you should see enough job control > messages to alert you to what's going on. With no options set, it would > be something like: It's non-interactive (a script). > Not sure what happens non-interactively, coproc is really there for use > with job control. Ah darn. Using coprocs in scripts comes in handy when you want sth like: coproc long_running while read -p; ... # something else while read -p; ... That's why, I thought it was meant for non-interactive cases. - René