- properly skip classpath string in Java completion
This commit is contained in:
parent
211fe940b6
commit
87dc4a5df1
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05b
|
# bash_completion - some programmable completion functions for bash 2.05b
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.618 2003/08/22 07:12:51 ianmacd Exp $
|
# $Id: bash_completion,v 1.619 2003/09/11 00:21:25 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -3438,7 +3438,7 @@ _java()
|
|||||||
for ((i=1; i < $COMP_CWORD; i++)); do
|
for ((i=1; i < $COMP_CWORD; i++)); do
|
||||||
case ${COMP_WORDS[$i]} in
|
case ${COMP_WORDS[$i]} in
|
||||||
-cp|-classpath)
|
-cp|-classpath)
|
||||||
continue # skip the classpath string.
|
break # skip the classpath string.
|
||||||
;;
|
;;
|
||||||
-*)
|
-*)
|
||||||
# this is an option, not a class/jarfile name.
|
# this is an option, not a class/jarfile name.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user