diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2010-11-07 17:16:58 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-11-07 17:16:58 +0000 |
commit | abfa420189ab94720a73a81e163fa70bc8cbc096 (patch) | |
tree | 7d51a2ab6926017aed07e9aaa31e6a488427586b /Completion/Unix | |
parent | ad56692b16c3a56236853816ddf38e14de034349 (diff) | |
download | zsh-abfa420189ab94720a73a81e163fa70bc8cbc096.tar.gz zsh-abfa420189ab94720a73a81e163fa70bc8cbc096.tar.xz zsh-abfa420189ab94720a73a81e163fa70bc8cbc096.zip |
Mikael: 28389: empty section in java CLASSPATH
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Type/_java_class | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_java_class b/Completion/Unix/Type/_java_class index d81669c00..020128823 100644 --- a/Completion/Unix/Type/_java_class +++ b/Completion/Unix/Type/_java_class @@ -13,9 +13,10 @@ classpath="${${classpath[2]:-${CLASSPATH:-.}}//\\:/:}" : "$classpath[@]" for i in "${(s.:.)classpath}"; do - if [ -f $i ] && [[ "$i" == *.(jar|zip|war|ear) ]]; then + [[ -z $i ]] && i=. + if [[ -f $i ]] && [[ "$i" == *.(jar|zip|war|ear) ]]; then c+=( ${${${(M)$(_call_program jar_classes jar -tf $i)##*.class}%%.class}:gs#/#.#} ) - elif [ -d $i ]; then + elif [[ -d $i ]]; then c+=( $i/**/*.class(.:r:s/.class//:s#$i/##:gs#/#.#) ) fi done |