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