From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16091 invoked from network); 4 Nov 2006 00:39:16 -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 00:39:16 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 34398 invoked from network); 4 Nov 2006 00:39:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2006 00:39:09 -0000 Received: (qmail 8941 invoked by alias); 4 Nov 2006 00:39:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22954 Received: (qmail 8931 invoked from network); 4 Nov 2006 00:39:05 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2006 00:39:05 -0000 Received: (qmail 34080 invoked from network); 4 Nov 2006 00:39:05 -0000 Received: from nf-out-0910.google.com (64.233.182.191) by a.mx.sunsite.dk with SMTP; 4 Nov 2006 00:39:04 -0000 Received: by nf-out-0910.google.com with SMTP id y38so1525870nfb for ; Fri, 03 Nov 2006 16:39:03 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=IElHEfc4oRf9Cm+fBRN5SvjP5HGjH0TOyuHp8cct4Z17PO76UrkyTVUmyPtRkx9pr0DHfx5sWD6ggabsESulTjAKLXBiEF7cHiCoTXiSoizu7K86M2TD7S6ag2zcEB3bIw82lBywamwJqLNSFSY7/hoAsCYf/1A8TcZSeQkJfPM= Received: by 10.82.172.15 with SMTP id u15mr805887bue.1162600743246; Fri, 03 Nov 2006 16:39:03 -0800 (PST) Received: by 10.82.164.2 with HTTP; Fri, 3 Nov 2006 16:39:03 -0800 (PST) Message-ID: <17393e3e0611031639g31c94488m7605a5841a3c9e25@mail.gmail.com> Date: Fri, 3 Nov 2006 19:39:03 -0500 From: "Matt Wozniski" Sender: godlygeek@gmail.com To: zsh-workers@sunsite.dk Subject: fg call in function: bug? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 7880d35d418d4b4f If I run 'fg %n' with a job number that doesn't exist, it has different (and worse) effects in a function than at a prompt. (Sorry if this has been fixed in CVS... Ubuntu Dapper doesn't have a package past 4.2.5 yet.. ;) ) SpyderByte% zsh -f SpyderByte% jobs SpyderByte% fg %1 fg: %1: no such job SpyderByte% test() { fg %1 } SpyderByte% test test: can't set tty pgrp: operation not permitted SpyderByte% fg %1 fg: no job control in this shell. SpyderByte% zsh --version zsh 4.2.5 (i686-pc-linux-gnu) ~Matt