Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#355430: zsh: acroread completion prints debugging information
- X-seq: zsh-workers 22378
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#355430: zsh: acroread completion prints debugging information
- Date: Sat, 25 Mar 2006 10:15:46 -0800
- Cc: 355430-forwarded@xxxxxxxxxxxxxxx, Jay Berkenbilt <qjb@xxxxxxxxxx>
- In-reply-to: <20060325151155.GA21370@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060305163923.12356.23913.reportbug@xxxxxxxxxxxxx> <20060306020302.GA6489@xxxxxxxxxxx> <20060325095217.2524443157.qww314159@xxxxxxxxxxxxx> <20060325151155.GA21370@xxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author