growisofs, _java_classes: Drop unnecessary compopt /dev/null redirections.
This commit is contained in:
parent
ab6c6890ed
commit
9dd125ee46
@ -12,7 +12,7 @@ _growisofs()
|
||||
return 0
|
||||
;;
|
||||
-Z|-M)
|
||||
compopt -o nospace &>/dev/null
|
||||
compopt -o nospace
|
||||
_dvd_devices
|
||||
return 0
|
||||
;;
|
||||
@ -30,7 +30,7 @@ _growisofs()
|
||||
# TODO: mkisofs options
|
||||
COMPREPLY=( $( compgen -W '-dvd-compat -overburn -speed= -Z -M' \
|
||||
-- "$cur" ) )
|
||||
[[ ${COMPREPLY[@]} == *= ]] && compopt -o nospace &>/dev/null
|
||||
[[ ${COMPREPLY[@]} == *= ]] && compopt -o nospace
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
@ -77,7 +77,7 @@ _java_classes()
|
||||
$( compgen -f -X '!*.class' -- "$i/$cur" | \
|
||||
sed -e '/\$/d' -e "s|^$i/||" )
|
||||
)
|
||||
[[ $COMPREPLY == *.class ]] || compopt -o nospace &>/dev/null
|
||||
[[ $COMPREPLY == *.class ]] || compopt -o nospace
|
||||
|
||||
# FIXME: if we have foo.class and foo/, the completion
|
||||
# returns "foo/"... how to give precedence to files
|
||||
|
Loading…
x
Reference in New Issue
Block a user