From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20677 invoked from network); 25 Mar 2006 18:34:19 -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:34:19 -0000 Received: (qmail 99806 invoked from network); 25 Mar 2006 18:34:13 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Mar 2006 18:34:13 -0000 Received: (qmail 10742 invoked by alias); 25 Mar 2006 18:34:11 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22379 Received: (qmail 10733 invoked from network); 25 Mar 2006 18:34:10 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Mar 2006 18:34:10 -0000 Received: (qmail 99540 invoked from network); 25 Mar 2006 18:34:10 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 25 Mar 2006 18:34:09 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 6238470059; Sat, 25 Mar 2006 13:34:07 -0500 (EST) Date: Sat, 25 Mar 2006 13:34:07 -0500 From: Clint Adams To: Bart Schaefer Cc: zsh-workers@sunsite.dk, 355430@bugs.debian.org, Jay Berkenbilt Subject: Re: Bug#355430: zsh: acroread completion prints debugging information Message-ID: <20060325183407.GA19421@scowler.net> Mail-Followup-To: Bart Schaefer , zsh-workers@sunsite.dk, 355430@bugs.debian.org, Jay Berkenbilt References: <20060305163923.12356.23913.reportbug@soup.q.ql.org> <20060306020302.GA6489@scowler.net> <20060325095217.2524443157.qww314159@soup.q.ql.org> <20060325151155.GA21370@scowler.net> <060325101546.ZM21762@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <060325101546.ZM21762@torch.brasslantern.com> User-Agent: Mutt/1.5.11+cvs20060126 > 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. No, it happens for me too, and I don't have acroread installed. Somehow the caret is Plan9-ing away the "ver=" outside the ${} or something. Index: Completion/X/Command/_acroread =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_acroread,v retrieving revision 1.5 diff -u -r1.5 _acroread --- Completion/X/Command/_acroread 10 May 2005 12:26:24 -0000 1.5 +++ Completion/X/Command/_acroread 25 Mar 2006 18:31:38 -0000 @@ -4,12 +4,12 @@ # 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=} +local ver=${${${(f)"$(<$commands[$words[1]])"}:#(#s)ver=*}##ver=} [[ -n $ver ]] && _acroread_version=$ver if (( ! $+_acroread_version )); then local acropath=${${(s. .)${${(f)"$($words[1] -help 2>&1)"}[1]}}[2]} - _acroread_version=${${${(f)"$(<$acropath)"}:#^ver=*}##ver=} + _acroread_version=${${${(f)"$(<$acropath)"}:#(#s)ver=*}##ver=} fi if [[ $_acroread_version == 7.* ]]; then