From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21197 invoked from network); 4 Nov 2006 02:51:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Nov 2006 02:51:31 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 41574 invoked from network); 4 Nov 2006 02:51:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2006 02:51:17 -0000 Received: (qmail 20439 invoked by alias); 4 Nov 2006 02:51:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22956 Received: (qmail 20430 invoked from network); 4 Nov 2006 02:51:14 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2006 02:51:14 -0000 Received: (qmail 41244 invoked from network); 4 Nov 2006 02:51:14 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 4 Nov 2006 02:51:12 -0000 Received: from torch.brasslantern.com ([71.116.118.106]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J86004FGQKWS3H1@vms048.mailsrvcs.net> for zsh-workers@sunsite.dk; Fri, 03 Nov 2006 20:50:57 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id kA42otfc014827 for ; Fri, 03 Nov 2006 18:50:56 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id kA42otDo014826 for zsh-workers@sunsite.dk; Fri, 03 Nov 2006 18:50:55 -0800 Date: Fri, 03 Nov 2006 18:50:55 -0800 From: Bart Schaefer Subject: Re: fg call in function: bug? In-reply-to: <17393e3e0611031639g31c94488m7605a5841a3c9e25@mail.gmail.com> In-reply-to: <17393e3e0611031715m7a189c43t46f5b0807490f129@mail.gmail.com> To: zsh-workers@sunsite.dk Message-id: <061103185055.ZM14825@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <17393e3e0611031639g31c94488m7605a5841a3c9e25@mail.gmail.com> <17393e3e0611031715m7a189c43t46f5b0807490f129@mail.gmail.com> Comments: In reply to "Matt Wozniski" "fg call in function: bug?" (Nov 3, 4:39pm) Comments: In reply to "Matt Wozniski" "fg call in function: bug?" (Nov 3, 5:15pm) On Nov 3, 4:39pm, Matt Wozniski wrote: } } SpyderByte% test() { fg %1 } } SpyderByte% test } test: can't set tty pgrp: operation not permitted On Nov 3, 5:15pm, Matt Wozniski wrote: } Subject: fg call in function: bug? } } ~>{ jobs %1 } } ~>jobs %1 } jobs: %1: no such job I believe both of these are happening because the { } construct creates a job table entry, which (in the first case) is attempting to put itself into the foreground when it already is, and (in the second case) is reporting nothing about itself.