From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15513 invoked by alias); 4 Aug 2013 12:16:57 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31632 Received: (qmail 3114 invoked from network); 4 Aug 2013 12:16:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.219.68 as permitted sender) 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== MIME-Version: 1.0 X-Received: by 10.60.47.76 with SMTP id b12mr10983445oen.78.1375618593420; Sun, 04 Aug 2013 05:16:33 -0700 (PDT) Date: Sun, 4 Aug 2013 21:16:33 +0900 Message-ID: Subject: Bug Report From: Yuusuke Yoshimoto To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=047d7b5d84ff9b7dd004e31e29ca --047d7b5d84ff9b7dd004e31e29ca Content-Type: text/plain; charset=ISO-8859-1 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. --047d7b5d84ff9b7dd004e31e29ca--