From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3670 invoked from network); 25 Mar 2006 18:12:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) 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.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Mar 2006 18:12:18 -0000 Received: (qmail 81738 invoked from network); 25 Mar 2006 18:12:12 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Mar 2006 18:12:12 -0000 Received: (qmail 6541 invoked by alias); 25 Mar 2006 18:12:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22378 Received: (qmail 6532 invoked from network); 25 Mar 2006 18:12:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Mar 2006 18:12:08 -0000 Received: (qmail 81460 invoked from network); 25 Mar 2006 18:12:08 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 25 Mar 2006 18:12:07 -0000 Received: from torch.brasslantern.com ([71.116.81.225]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IWP00F633W3N2S5@vms048.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 25 Mar 2006 12:12:04 -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 k2PIFkwZ021764; Sat, 25 Mar 2006 10:15:50 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k2PIFk9j021763; Sat, 25 Mar 2006 10:15:46 -0800 Date: Sat, 25 Mar 2006 10:15:46 -0800 From: Bart Schaefer Subject: Re: Bug#355430: zsh: acroread completion prints debugging information In-reply-to: <20060325151155.GA21370@scowler.net> To: Clint Adams , zsh-workers@sunsite.dk Cc: 355430-forwarded@bugs.debian.org, Jay Berkenbilt Message-id: <060325101546.ZM21762@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20060305163923.12356.23913.reportbug@soup.q.ql.org> <20060306020302.GA6489@scowler.net> <20060325095217.2524443157.qww314159@soup.q.ql.org> <20060325151155.GA21370@scowler.net> Comments: In reply to Clint Adams "Re: Bug#355430: zsh: acroread completion prints debugging information" (Mar 25, 10:11am) On Mar 25, 10:11am, Clint Adams wrote: } Subject: Re: Bug#355430: zsh: acroread completion prints debugging informa } } > The way I found this was to do setopt -x before acroread TAB and to } > see that the loads of extra output I got started after evaluating line } > 7 of _acroread which shown here including the preceding comment: } > } > # Try extracting the version number directly from the executable. } > # (This will fail if the executable is a wrapper script for acroread.) } > local ver=${${${(f)"$(<$commands[$words[1]])"}:#^ver=*}##ver=} The comment is misleading. The test above fails UNLESS the executable is a shell script, not IF the executable is a shell script. I'm not sure if the comment author meant to imply an extra script around the Adobe-supplied default script, or if he got his semantics backwards. } What's happening is that that line is being run as "local" without the } argument. Why? My only guess is that it has something to do with NULLGLOB and the junk that would get spewed out by $(<$command[$words[1]]) in the event that it really was reading directly from a binary executable.