From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24269 invoked from network); 31 Jul 2006 13:46:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 31 Jul 2006 13:46:31 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 3875 invoked from network); 31 Jul 2006 13:46:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 31 Jul 2006 13:46:25 -0000 Received: (qmail 19437 invoked by alias); 31 Jul 2006 13:46:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22570 Received: (qmail 19426 invoked from network); 31 Jul 2006 13:46:22 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 31 Jul 2006 13:46:22 -0000 Received: (qmail 3619 invoked from network); 31 Jul 2006 13:46:21 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 31 Jul 2006 13:46:19 -0000 Received: from rly08c.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly08c.srv.mailcontrol.com (MailControl) with ESMTP id k6VDjUNH016034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 31 Jul 2006 14:45:31 +0100 Received: from submission.mailcontrol.com (submission.mailcontrol.com [212.158.48.250]) by rly08c.srv.mailcontrol.com (MailControl) id k6VDgri0010187 for zsh-workers@sunsite.dk; Mon, 31 Jul 2006 14:42:53 +0100 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly08c-eth0.srv.mailcontrol.com (envelope-sender Peter.Stephenson@csr.com) (MIMEDefang) with ESMTP id k6VDWGE5014108; Mon, 31 Jul 2006 14:42:53 +0100 (BST) Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Mon, 31 Jul 2006 14:38:38 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.4/8.13.4) with ESMTP id k6VDcaxe023862; Mon, 31 Jul 2006 14:38:36 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.4/8.13.4/Submit) with ESMTP id k6VDcaE8023859; Mon, 31 Jul 2006 14:38:36 +0100 Message-Id: <200607311338.k6VDcaE8023859@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk, corecode@fs.ei.tum.de Subject: Re: PATCH: Make subshells non-interactive In-reply-to: <44CDF015.60108@fs.ei.tum.de> References: <44CDF015.60108@fs.ei.tum.de> Date: Mon, 31 Jul 2006 14:38:36 +0100 From: Peter Stephenson X-OriginalArrivalTime: 31 Jul 2006 13:38:38.0410 (UTC) FILETIME=[A0ED12A0:01C6B4A6] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-00-11 (www.mailcontrol.com) on 10.67.1.118 "Simon 'corecode' Schubert" wrote: > I noticed that subshells of an interactive shell consider themself intera= > ctive as well. I am not sure if this is desired, but making them non-int= > eractive helps to solve my real issue: > > when executing > > zsh% (cd .) > > my chpwd function is executed. In a subshell, I want to avoid that. > Making the subshell be non-interactive and checking [[ -o interactive ]] > in my chpwd() does the trick, but maybe there is a better solution? Could you not test one of the existing options which is reset, zle or monitor? -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php