Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug Report
- X-seq: zsh-workers 31632
- From: Yuusuke Yoshimoto <immortal836@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Bug Report
- Date: Sun, 4 Aug 2013 21:16:33 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2p70vzmTY4ZQPQ4JdXlFynhvFaSHOSUhq/MiFQ511N0=; b=o0WyWzXmxuGe2JRn5gsKSUjByckdMdBcDgsZqRVURHrat/FoLmpN7aKxZWeFwJXmAd YUa0/VHNxCRncDPpKkzQkkatZOeGpwVHdObdGWqbiNef9/nvnBWsHNT0KqwxOUgZxD3T sZHzyJmMrrfUylWBfRHKBh9EqWmdKPbP1dBeZAMzGEd6apL7Cmpvls2RNdnaBxq7IlmZ q5c1M8+G68eNxAdSx5QebseS5xPX8kSBkXVXAIz+D2dSVHSqTvC/jTaqlvOISVlc6mGa vK5jJe8VJ6BvG/S5EgPAafFluGzcw6ffWycdR6uMStlS1rmWE30Sl5rzB605r2cDgY61 +gkA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello, I'm Yusuke Yoshimoto, a Japanese university student majoring in
computer science. I found a minor bug in the standard completion function
_java_class and fixed it. The bug is that typed string gets broken if
$JAVA_TOOL_OPTIONS is set and -classpath is designated as jar files. For
example, given that $JAVA_TOOL_OPTIONS is '-Dfile.encoding=UTF-8', I type
java -classpath hamcrest-all-1.3.jar:junit-4.11.jar:
and hit tab, then the input goes to the following:
java -classpath hamcrest-all-1.3.jar:junit-4.11.jar: Picked up
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
To fix this, change line 18 of zsh-5.0.2/Completion/Unix/Type/_java_class
c+=( ${${${(M)$(_call_program jar_classes jar -tf
$i)##*.class}%%.class}:gs#/#.#} )
into
c+=( ${${${(M)$(_call_program jar_classes jar -tf $i
2>/dev/null)##*.class}%%.class}:gs#/#.#} )
Thank you.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author