zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@sunsite.dk, 355430@bugs.debian.org,
	Jay Berkenbilt <qjb@debian.org>
Subject: Re: Bug#355430: zsh: acroread completion prints debugging information
Date: Sat, 25 Mar 2006 13:34:07 -0500	[thread overview]
Message-ID: <20060325183407.GA19421@scowler.net> (raw)
In-Reply-To: <060325101546.ZM21762@torch.brasslantern.com>

> 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


  reply	other threads:[~2006-03-25 18:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20060305163923.12356.23913.reportbug@soup.q.ql.org>
     [not found] ` <20060306020302.GA6489@scowler.net>
     [not found]   ` <20060325095217.2524443157.qww314159@soup.q.ql.org>
2006-03-25 15:11     ` Clint Adams
2006-03-25 18:15       ` Bart Schaefer
2006-03-25 18:34         ` Clint Adams [this message]
2006-03-26  7:01           ` Bart Schaefer
2006-03-26 15:12             ` Clint Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060325183407.GA19421@scowler.net \
    --to=clint@zsh.org \
    --cc=355430@bugs.debian.org \
    --cc=qjb@debian.org \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).