From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20892 invoked from network); 27 Mar 2007 09:33:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FORGED_RCVD_HELO, MANY_EXCLAMATIONS,PLING_QUERY autolearn=no version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Mar 2007 09:33:25 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 33950 invoked from network); 27 Mar 2007 09:33:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Mar 2007 09:33:19 -0000 Received: (qmail 20613 invoked by alias); 27 Mar 2007 09:33:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23237 Received: (qmail 20603 invoked from network); 27 Mar 2007 09:33:15 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Mar 2007 09:33:15 -0000 Received: (qmail 33606 invoked from network); 27 Mar 2007 09:33:15 -0000 Received: from smtpout0163.sc1.he.tucows.com (HELO n064.sc1.he.tucows.com) (64.97.136.163) by a.mx.sunsite.dk with SMTP; 27 Mar 2007 09:33:12 -0000 Received: from sc.homeunix.net (82.26.160.246) by n064.sc1.he.tucows.com (7.2.069.1) id 45FC2AFB000BEA72 for zsh-workers@sunsite.dk; Tue, 27 Mar 2007 09:33:10 +0000 Received: from chazelas by sc.homeunix.net with local (Exim 4.63) (envelope-from ) id 1HW838-0001oH-OK for zsh-workers@sunsite.dk; Tue, 27 Mar 2007 10:33:06 +0100 Date: Tue, 27 Mar 2007 10:33:06 +0100 From: Stephane Chazelas To: Zsh hackers list Subject: compinit in sourced file breaks bg command!?! Message-ID: <20070327093306.GA4885@sc.homeunix.net> Mail-Followup-To: Zsh hackers list Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.6i Hi, I've been experiencing an annoting behavior of bg recently. $ cmd $ bg and cmd is not made the "current job". It's OK when running with zsh -f though. I've tried to narrow it down. Apparently it's due to the "compinit" line in my ~/.zshrc. To reproduce it: $ rm ~/.zcompdump $ zsh -f sc% autoload compinit sc% . <(echo compinit) sc% sleep 200 zsh: suspended sleep 200 sc% jobs [1] + suspended sleep 200 sc% bg [1] continued sleep 200 sc% jobs [1] running sleep 200 sc% fg fg: no current job The behavior doesn't show up if ". <(echo compinit)" is replaced with "compinit", that is compinit has to be run from a sourced file. That's the zsh-beta package on debian unstable: 4.3.2-dev-1+20070324-1 It's OK with zsh package 4.3.2-25 Any idea? Best regards, Stéphane