From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7068 invoked by alias); 2 Nov 2012 07:18:19 -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: 17374 Received: (qmail 3166 invoked from network); 2 Nov 2012 07:18:17 -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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <121102001808.ZM13144@torch.brasslantern.com> Date: Fri, 02 Nov 2012 00:18:08 -0700 In-reply-to: Comments: In reply to Alan Pinstein "Re: Commands run from functions don't exit cleanly on terminal close (SIGHUP)?" (Nov 1, 2:26pm) References: <2B813FB0-0877-42BA-974C-1A142EF09BCE@mac.com> <909858C7-4B5A-4679-90B3-6BF5398BA9FC@mac.com> <20121025112222.3dfbb213@pws-pc.ntlworld.com> <121025075455.ZM3417@torch.brasslantern.com> <121027110728.ZM8440@torch.brasslantern.com> <121028100739.ZM1724@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Commands run from functions don't exit cleanly on terminal close (SIGHUP)? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Nov 1, 2:26pm, Alan Pinstein wrote: } } # start 2 ssh sessions in zsh 5.0.0 from macports, one from ZLE/CLI } and one via a function... OK, obviously I haven't been understanding what you're doing. I thought you meant ssh -> zsh -> function -> function runs command -> HUP ssh But now I think you mean zsh -> function -> function runs ssh -> ssh runs command -> HUP zsh So can you please describe EXACTLY what you're doing, step by step?