diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Type/_java_class | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index e9e609c45..21c0cef7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-08-04 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * Yuusuke Yoshimoto: 31632: Completion/Unix/Type/_java_class: + suppress stderr from jar when completing classes. + 2013-08-02 Peter Stephenson <p.w.stephenson@ntlworld.com> * 31611: Src/Zle/zle_tricky.c: attempt to fix crash in diff --git a/Completion/Unix/Type/_java_class b/Completion/Unix/Type/_java_class index 020128823..0e30e550c 100644 --- a/Completion/Unix/Type/_java_class +++ b/Completion/Unix/Type/_java_class @@ -15,7 +15,7 @@ classpath="${${classpath[2]:-${CLASSPATH:-.}}//\\:/:}" for i in "${(s.:.)classpath}"; do [[ -z $i ]] && i=. if [[ -f $i ]] && [[ "$i" == *.(jar|zip|war|ear) ]]; then - c+=( ${${${(M)$(_call_program jar_classes jar -tf $i)##*.class}%%.class}:gs#/#.#} ) + c+=( ${${${(M)$(_call_program jar_classes jar -tf $i 2>/dev/null)##*.class}%%.class}:gs#/#.#} ) elif [[ -d $i ]]; then c+=( $i/**/*.class(.:r:s/.class//:s#$i/##:gs#/#.#) ) fi |