From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8572 invoked from network); 4 Nov 2006 02:58:09 -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=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:58:09 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 48983 invoked from network); 4 Nov 2006 02:58:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2006 02:58:02 -0000 Received: (qmail 21040 invoked by alias); 4 Nov 2006 02:57:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22957 Received: (qmail 21029 invoked from network); 4 Nov 2006 02:57:59 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2006 02:57:59 -0000 Received: (qmail 48562 invoked from network); 4 Nov 2006 02:57:59 -0000 Received: from nf-out-0910.google.com (64.233.182.186) by a.mx.sunsite.dk with SMTP; 4 Nov 2006 02:57:58 -0000 Received: by nf-out-0910.google.com with SMTP id y38so1560263nfb for ; Fri, 03 Nov 2006 18:57:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lZRrBvYxVCSS+XBRUbGhXfB8w+8Ar93fWcb3QEK0OeW8RYN0IA0QNxpwqX9Q9LuEadROJyG45Dcxi4A0Ty35ndB+xUCXcjistL0jcJBJRzVhGqtkMJhx3+359jkpjmLMmG6MjRaQwNTC5CxhXzKTIpB0j5LYQUI8q7n+msiABjA= Received: by 10.82.109.19 with SMTP id h19mr934413buc.1162609077531; Fri, 03 Nov 2006 18:57:57 -0800 (PST) Received: by 10.82.164.2 with HTTP; Fri, 3 Nov 2006 18:57:57 -0800 (PST) Message-ID: <17393e3e0611031857x3673ca28oec66aa06405d2f7d@mail.gmail.com> Date: Fri, 3 Nov 2006 21:57:57 -0500 From: "Matt Wozniski" Reply-To: mjw@drexel.edu To: zsh-workers@sunsite.dk Subject: Re: fg call in function: bug? In-Reply-To: <17393e3e0611031856v21f9bc19k9a9f25ff5ef002ba@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <17393e3e0611031639g31c94488m7605a5841a3c9e25@mail.gmail.com> <17393e3e0611031715m7a189c43t46f5b0807490f129@mail.gmail.com> <061103185055.ZM14825@torch.brasslantern.com> <17393e3e0611031856v21f9bc19k9a9f25ff5ef002ba@mail.gmail.com> Crap. I sent this to Bart at first. My apologies, Bart. If that were the case, wouldn't you expect to see different output between "jobs" and "{ jobs }"? ~Matt On 11/3/06, Bart Schaefer wrote: > 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. >